Question 7. What will be internal code of the register BL (hexadecimal) after execution of the following instructions?
X
dd
OFFh
:::
mov
edx, X
cmp
edx, -1
jg
pos
dec
edx
pos: mov
ebx, edx
ANSWER (hexadecimal value):
Question 8. What will be internal code of AX register after execution of the following instructions?
k
dw
10,4,0,-3,16
:::
mov
esi, 0
mov
ecx, 2
mov
ax,0
d:
add
ax, k[esi]
add
esi, 2
loop
d
ANSWER (hexadecimal value):
estion 9. Executing a LOOP instruction causes changes in (circle one correct answer)
A. the ESI and EDI register.
B. the stack pointer register ESP.
C. the EAX register.
D. none of the above.
tion 10. When the CPU executes a RET instruction: (circle one correct answer)
the EIP register that contains return address is saved in the stack.
address from the top of the stack is stored in the EIP register.
all general purpose registers are restored from the stack.
value of none of the registers is changed.