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 x
AND RR #
AND RR #
ADD RR #
JSR SUB
ADD RR ASCII
ADD RR#
TRAP x
SUB ADD RR#
ADD RR#
RET
ASCII FILL x
END
Group of answer choices
Nothing is wrong, the program outputs
We are modifying the contents of register R This destroys the linkage back to the calling program.
TRAP x will not work after a subroutine call.
We are adding the xascii code for which is unnecessary.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
