Question

If the binary code for LOAD is (0001), for ADD is (0011), for STORE is (0010)...

  1. If the binary code for LOAD is (0001), for ADD is (0011), for STORE is (0010) for JMP is (1000) and for END is (0111). Assuming a 16 bits format, write the executable code (binary representation) of the following program: (10 points)

Note: use 4 bits for the op-code and 12 bits for the ADDR.

LOAD <25>

ADD     <33>

STORE <15>

JMP        <8>

END

Homework Answers

Answer #1

Greetings!!

Mnomonics Machine code

LOAD <25>               0001000000011001

ADD <33>                0011000000100001

STORE <15> 0010000000001111

JMP <8> 1000000000001000

END                           0111000000000000

Explanation:

Conversion to the machine code is done by appending the binary equivalent of the address given with the opcode of the instruction. For example,

LOAD <25> [the load instruction have code 0001 and the equivalent of 25 is 11001 ]

The machine language equivalent is 0001 000000011001

Hope this helps

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT