In the following code fragments, state whether mov AX,10 or mov BX,1 is executed:
(a) (b)
mov CX,5 mov CX,5
sub DX,DX mov DX,10
cmp DX,CX shr DX,1
jge jump1 cmp CX,DX
mov BX,1 je jump1
jmp skip1 mov BX,1
jump1: jmp skip1
mov AX,10 jump1:
skip1: mov AX,10
. . . skip1:
...
(c) (d)
mov CX,15BAH mov CX,5
mov DX,8244H not CX
and DX,CX mov DX,10
jz jump1 cmp CX,DX
mov BX,1 jg jump1
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here