Question: Implement the following utility routines: push, pop. Note that push and pop cannot use the run-time stack since their job is to modify the stack
Implement the following utility routines: push, pop. Note that push and pop cannot use the run-time stack since their job is to modify the stack (i.e. you'll need to implement them via register transfers). Also, make sure your pop routine ensures that you don't get into a stack underflow condition. And think about why I'm not asking for stack overflow protection in your push routine.
Must be implemented using LC-3.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
