Multiple choice

Consider the following program segment for a hypothetical CPU having three user registers R1,R2 and R3.

Consider that the memory is byte addressable with size 32 bits, and the program has been loaded starting from memory location 1000 (decimal). If an interrupt occurs while the CPU has been halted after executing the HALT instruction, the return address (in decimal) saved in the stack will be

  1. 1007

  2. 1020

  3. 1024

  4. 1028

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation