All Exams Test series for 1 year @ ₹349 only
Question

What will be the hexadecimal value in the register ax (32-bit) after executing the following instructions ?

    mov al, 15

    mov ah, 15

    xor al, al

    mov cl, 3

    shr ax, cl

Codes :

This question was previously asked in
UGC NET 2015 Paper 1 Question Paper (27-Dec-2015)
The correct answer is

01E0 h

Decimal 15 is 0F h, al is the low byte of ax and ah is the high byte.

mov al, 15; mov ah, 15 \(\Rightarrow ax = 0F0F\,h\)

xor al, al clears the low byte \(\Rightarrow ax = 0F00\,h = 0000\,1111\,0000\,0000_{2}\)

shr ax, 3 shifts right by 3 bits \(\Rightarrow 0000\,0001\,1110\,0000_{2} = 01E0\,h\)

Check: \(0F00\,h = 3840\) and \(3840 / 8 = 480 = 01E0\,h\).

Hence, 01E0 h.

Was this answer helpful?

Similar Questions

  1. The advantage of _______ is that it can reference memory without paying the price of having a full memory address in the instruction.

  2. Which of the following are not data manipulation instructions?

    A. Call

    B. Loud

    C. And

    D. Increment

    E. Shift

    Choose the correct answer from the options given below:

  3. The _____ addressing mode is similar to register indirect addressing mode, except that an offset is added to the contents of the register. The offset and register are specified in the instruction.

  4. Match the following :

    Addressing ModeLocation of operand
    a.Impliedi.Registers which are in CPU
    b.Immediateii.Register specifies the address of the operand.
    c.Registeriii.Specified in the register
    d.Register Indirectiv.Specified implicitly in the definition of instruction

    Codes :


Important Questions from Machine Instructions and Addressing Modes

  1. Consider a processor P whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand.

    Which one of the following sequences of instructions corresponds to the high-level language statement $Z = X + Y$ ?
    Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers.
  2. 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?

  3. Instruction AAA is used to
  4. Which of the following is/are part of an Instruction Set Architecture of a processor?
  5. The following language uses mnemonic OP codes

Need Expert Advice?
Upcoming Exams
CTET
December 12, 2026
CBSE UGC NET
December 14, 2026
CSIR UGC NET
December 19, 2026
Test Series
UGC NET img
Teaching
UGC NET (Paper 2) 2026 Mock Test Series
796 Tests 2 Tests Free
4.4(40)
English
More Questions from UGC NET

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App