832 views
0 0 votes
assume that memory is BYTE addressable with word size of 32 bits.the program has been loaded in memory 300(decimal) onwards. if an interrupt occured during the execution of HALT instruction which is stored at 328.what will be the return address pushed on to the stack

1 332

2 328

3 324

4 none

1 Answer

Best answer
1 1 vote

It is mentioned during the execution of Halt instruction, so the instruction execution must be restarted and the return address must be 328 for the interrupt. 

For completed HALT instruction, the return address must be 328 + 4 assuming size of HALT instruction is one word- 4 bytes. 

Ref: http://x86.renejeschke.de/html/file_module_x86_id_134.html

• selected by
Position:
Show:

Related questions

2 2 votes
1 1 answer
192
192 views
sanya_Singh 1 asked May 14
192 views
COA
A computer's memory hierarchy has a single cache with a 8.5ns access time and a 98% hit rate. Main memory has a 100 ns access time. If we replace the cache with another o...
2 2 votes
0 0 answers
134
134 views
sanya_Singh 1 asked May 14
134 views
COA
Consider a write through cache which can fulfil 76.5% of CPU’s all memory requirements. Main memory has an access time of 1000ns, cache memory access time is 100ns. Cache...
3 3 votes
2 2 answers
624
624 views
GO Classes asked Feb 13
624 views
Consider a processor with instruction size of $2\,\text{bytes}$ and $16$ registers. The instruction set consists of three instruction formats $L$, $M$, and $N$.$L$: has $...
3 3 votes
1 1 answer
642
642 views
GO Classes asked Feb 13
642 views
Consider the following statements about interrupts.$\text{S1}:$ A non vectored interrupt generally requires more time to identify the interrupting device compared to a ve...