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?
- A$0270H$
- B$0170H$Correct answer
- C$01E0H$
- D$0370H$
Answer
(B) $0170H$
Approach
Execute the 8086 instructions step by step on AX.
Reviewed by UGC IQ Editorial Team.