Question: Convert the following LC3 code to Machine Language .orig x3000 LD R1, 255 LD R2, 255 BRnz DONE LOOP ADD R1, R1, R1 ADD R2,

Convert the following LC3 code to Machine Language

.orig x3000 LD R1, 255 LD R2, 255 BRnz DONE

LOOP ADD R1, R1, R1 ADD R2, R2, -1 BRP LOOP HALT DONE .FILL x3102 .END

I have already started but am stuck. This is what I have

0011000000000000 ;orig .x3000 0010001011111111; LD R1, 255 0010010011111111; LD R2, 255 0000110

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!