Teaching UGC NET Mock Test Series 2025 (Paper 1 & 2) Computer Organization and Architecture Machine Instructions and Addressing Modes
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?
1
ax = FFF5 h and cx = 0 h
2
ax = FFF6 h and cx = 0 h
3
ax = FFF7 h and cx = 0A h
4
ax = FFF5 h and cx = 0A h