Question: 9-11. A computer with a register file, but without PUSH and POP instructions, is to be used to implement a stack. The computer does have

 9-11. A computer with a register file, but without PUSH and

9-11. A computer with a register file, but without PUSH and POP instructions, is to be used to implement a stack. The computer does have the following register indirect addressing modes: Register indirect + increment: LD Rj Ri Ri- Ri+1 STRj Ri RiRi + 1 Decrement register indirect: LD Rj Ri ST Rj Ri MIRi R Show how these instructions can be used to provide the equivalent of PUSH and POP by using the instructions and register R6 as the stack pointer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!