Skip to content
Related Articles

Related Articles

GATE | GATE-CS-2007 | Question 73

View Discussion
Improve Article
Save Article
  • Last Updated : 19 Nov, 2018
View Discussion
Improve Article
Save Article

Consider the data given in above questions. Assume that the memory is byte addressable and the word size is 32 bits. If an interrupt occurs during the execution of the instruction “INC R3”, what return address will be pushed on to the stack?
(A) 1005
(B) 1020
(C) 1024
(D) 1040

Answer: (C)

Explanation: Explanation:

If memory is byte addressable so for each instruction it requires 1 word that is equal to 4 bytes which require 4 addresses

MOV R1,300021000-1007
MOV R2,R111008-1011
ADD R2,R111012-1015
INC R311020-1023
DEC R111024-1027

Interrupt occur during execution of instruction INC R3. So CPU will complete the execution of this instruction and push the next address 1024 in the stack. So after interrupt service program can be resumed for next instruction.

So (C) is correct option.

Quiz of this Question

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!