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

Practice More Questions on Our App!

Download our app for free and access thousands of MCQ questions with detailed solutions