Question: [ 5 pts ] What does the PC contain on executing JSR MAT in the following code fragment: . ORIG x 3 DA 0 JSR

[5 pts] What does the PC contain on executing JSR MAT in the following code fragment:
.ORIG x3DA0
JSR MAT
ADD RO,R4,R2
MAT ADD RO,RO,#1
RET
[3 pts] Assume R6 is the stack pointer of a stack that grows toward zero, and initially contains the value x42A0. After these operations,
push 7
push 6
pop
push 3
pop
[3 pts] What does the following program do:
.ORIG x3000
TRAP x20
TRAP X21
[3 pts] What will R7 be loaded with if the instruction TRAP 23 is at location x4A3F?
[ 5 pts ] What does the PC contain on executing

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!