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...


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


jmp skip1 mov BX,1


jump1: jmp skip1


mov AX,10 jump1:


skip1: mov AX,10


. . . skip1:


...



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here