Question: 8 . [ 3 pts ] What will R 7 be loaded with if the instruction TRAP 2 3 is at location x 4 2

8.[3 pts] What will R7 be loaded with if the instruction TRAP 23 is at location x42FF?
9.[4 pts] Assume R6 is the stack pointer of a stack that grows toward zero, and initially contains the value x33AE. After these operations,
push 5
push 9
push 6
pop
push 3
pop
10.[8 pts] The input stream of a stack is a list of all the elements we pushed onto the stack, in the order that we pushed them.
The output stream is a list of all the elements that are popped off the stack, in the order that they are popped off.
a. What is the output stream from question 5?
b. If the input stream is XWZYUTSRV, create a sequence of pushes and pops such that the output stream is YXVUWZSRT.
c. If the input stream is WZT, how many different output streams can be created? List them down
8 . [ 3 pts ] What will R 7 be loaded with if the

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!