Open In App

UGC-NET | UGC-NET CS 2017 Dec 2 | Question 31

Like Article
Like
Save
Share
Report

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


Last Updated : 19 Nov, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads