Consider the following program fragment in assembly language: mov ax, 0h mov cx, 0Ah doloop: dec ax loop doloop What is the value of ax and cx…

Consider the following program fragment in assembly language:

mov ax, 0h
mov cx, 0Ah
doloop:
dec ax
loop doloop

What is the value of ax and cx registers after the completion of the do loop?

  1. a) ax=FFF5 h and cx=0h
  2. b) ax=FFF6 h and cx=0h
  3. c) ax=FFF7 h and cx=A h
  4. d) ax=FFF5 h and cx=0A h

From the Combined Bank Senior Officer September 2021 – Preliminary (AUST) exam, question 50 of 92.

More from this paper