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 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
Get step-by-step solutions from verified subject matter experts
