Question: the main program you give and the one I have is a little bit different. My main part is . ORIG x 3 0
the main program you give and the one I have is a little bit different. My main part is ORIG x
LD R NUM
LD R DEN
JSR GCD
ADD R R #
ADD R R #
JSR DIVIDE
ST R NUM
ADD R R #
JSR DIVIDE
ST R DEN
HALT
; you can try other values for NUM and DEN by replacing these values in the simulator
NUM FILL #
DEN FILL #
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
