Consider the following program fragment in assembly language:
move ax, 0h
mov cx,0A h
doloop:
dac ax
loop doloop
What is the value of ax and cx registers after the completion of the do loop?
A ax=FFF5h and cx=0h
B ax=FFF6h and cx=0h
C ax=FFF7h and cx=Ah
D ax=FFF5h and cx=0Ah
Solution
Correct Answer: Option B