Skip to content

UGC NET CS 2017Computer System Architecture › Programming the Basic ComputerVerified

UGC NET CS 2017 PYQ: Consider the following assembly language instructions: mov al, 15 mov ah, 15 xor al, al mov cl, 3 shr ax, cl…

Consider the following assembly language instructions:

mov al, 15
mov ah, 15
xor al, al
mov cl, 3
shr ax, cl
add al, 90H
add ah, 0

What is the value in $ax$ register after execution of above instructions?

  1. A
    $0270H$
  2. B
    $0170H$
    Correct answer
  3. C
    $01E0H$
  4. D
    $0370H$

Answer

(B) $0170H$

Approach

Execute the 8086 instructions step by step on AX.

Reviewed by UGC IQ Editorial Team.