Question: 1 . Write an instruction, which moves number 7 to register R 0 1 . 2 . Execute the above instruction 3 . Create an

1. Write an instruction, which moves number 7 to register R01.
2. Execute the above instruction
3. Create an instruction, which moves number 8 to register R02.
4. Create an instruction, which adds the contents of R01 and R02.
5. Execute it and show the register that holds the result
6. Create an instruction, which pushes the above result to the top of the hardware stack, and then
execute it.
7. Create an instruction to push number 2 on top of the stack and execute it.
Show the value in Program Stack
8. Create an instruction to pop the value on top of the Program Stack into register R03.Execute it and observe the value in SP register

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 Programming Questions!