Question

Please help with solution Write the following MARIE assembly language equivalent of the following machine language...

  1. Please help with solution
  2. Write the following MARIE assembly language equivalent of the following machine language instructions

  1. 0001 0010 0000 0100
  2. 0010 0010 0000 0110
  3. 1001 0000 0000 1011
  4. 0111 0000 0000 0000

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer is as follows :

As we know that Marie Assembly Language has opcode of 4 bits i.e. 4 Bit MSB's

A) 0001 0010 0000 0100

So here opcode is 0001 i.e. 1, used for LOAD instruction.

other parts, 0010 0000 0100 is 204. So 0x204 acts as memory location. from where data is loaded in accumulator. Say X represent location 0x204

So instruction is LOAD X or LOAD 0x204

B) 0010 0010 0000 0110

Here opcode is 0010 i.e 2, used for Store instruction.

0010 0000 0110 is 206. So data in accumulator store at location 0x206. Say Y represent location 0x206

So instruction is STORE Y or STORE 0x206

C) 1001 0000 0000 1011

Here opcode is 1001 i.e. 9, used for Jump instruciton.

0000 0000 1011 is 00B. So control is jump to location 0x00B. Say Z represent location 0x00B.

So instruction is JUMP 0x00B or JUMP Z

D) 0111 0000 0000 0000

Opcode is 0111 i.e 7, used for Halt.

other parts 0000 0000 0000 i.e. 0 , so it don't represent any memory location.

So instruction is HLT i.e. used for terminating the program.

if there is any query please ask in comments....

Add a comment
Know the answer?
Add Answer to:
Please help with solution Write the following MARIE assembly language equivalent of the following machine language...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT