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

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

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!