Consider the given C-code and its corresponding assembly code, with a few…

PYQ GATE 2023

Consider the given C-code and its corresponding assembly code, with a few operands U1–U4 being unknown. Some useful information as well as the semantics of each unique assembly instruction is annotated as inline comments in the code. The memory is byte-addressable.

image.png

Which one of the following options is a CORRECT replacement for operands in the position (U1, U2, U3, U4) in the above assembly code?

  1. A.

    (8, 4, 1, L02)

  2. B.

    (3, 4, 4, L01)

  3. C.

    (8, 1, 1, L02)

  4. D.

    (3, 1, 1, L01)

Attempted by 71 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…