Question: What is wrong with the code fragment: . ORIG x 3 0 0 0 AND R 0 , R 0 , # 0 AND R

What is wrong with the code fragment: .ORIG x3000 AND R0,R0, #0 AND R2,R2, #0 ADD R2,R2, #7 JSR SUB ADD R2,R2, ASCII ADD R0,R2,#0 TRAP x21 SUB ADD R2,R2,#9 ADD R7,R7,#1 RET ASCII .FILL x0030.END Group of answer choices We are modifying the contents of register R7. This destroys the linkage back to the calling program. Nothing is wrong, the program outputs 16 We are adding the x0030(ascii code for 0), which is unnecessary. TRAP x21 will not work after a subroutine call.

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