Last Updated : 19 Nov, 2018

Consider the following program fragment in assembly language :

mov ax, 0h
mov cx, 0A h

doloop :
dec ax
loop doloop

What is the value of ax and cx registers after the completion of the doloop ?
(A) ax=FFF5 h and cx=0 h
(B) ax=FFF6 h and cx=0 h
(C) ax=FFF7 h and cx=0A h
(D) ax=FFF5 h and cx=0A h


Answer: (B)

Explanation:

Quiz of this Question


Share your thoughts in the comments