What is the assembly language equivalent for the following binary machine langua
ID: 3912153 • Letter: W
Question
What is the assembly language equivalent for the following binary machine language instructions? Assume Figures 6.5 and 6.13 below.
0000 000000001010
0100 000000001001
FIGURE 6.5 FIGURE 6.13 Binary Op Code Operation LOAD X STORE X CLEARX ADD X INCREMENT X SUBTRACT X DECREMENT X COMPAREX Instruction Format: Op Code 4 bits Address 12 bits Meaning R ? CON(X) 0-CONÇX Object Program: 0010 Machine Language Instruction 1101 000000001001 1101 000000001010 0000 000000001001 0111 000000001010 1001 000000000111 1110 000000001001 1000 1110 000000001010 ess Meaning 0100 0101 0110 0111 CON(X) + 1 ? CON(X) 0010 LOAD X COMPARE Y JUMPGT DONE OUTX JUMP LOOP OUT Y CON(X)-1-CONCX) if CONCX)> R then GT 1 else 0 if CON(X) = R then EQ = 1 else? if CON(X)Explanation / Answer
Answer :
I have written the 12 bit memory address as their value of register from above
LOAD Y
INCREMENT X
As from above Y=000000001010
X=000000001001
Any doubt, please comment.
please upvote.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.