A computer with a register ile, but without PUSH and POP instructions, is to be used to

Question:

A computer with a register ile, 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 ST Rj Ri Decrement + register indirect: LD Rj Ri ST Rj Ri Rj+M[Ri]

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.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Logic And Computer Design Fundamentals

ISBN: 9780133760637

5th Edition

Authors: M. Morris Mano, Charles Kime, Tom Martin

Question Posted: