Central Processing Unit Q.30

0. Consider that the memory is word addressable with size 32 bits and the program has been loaded starting from memory location 1000 (decimal). If an interrupt occurs during the ADD instruction, what will be the return address pushed on to the stack.

  • Option : B
  • Explanation : If memory is word addressable then 1st instruction require two words space (1000 – 1001) 2nd instruction requires only 1 word space ( 1002) and instruction 3rd requires only 1 word space (1003) hence 3rd is add instruction and interrupt occurs during that so after executing that instruction CPU handles the interrupt so return address is 1004
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *