Question

What is the assembly language equivalent of each of the following binary machine language instructions? When...

What is the assembly language equivalent of each of the following binary machine language instructions?

When answering, use w as the label for address 6, x as the label for address 225, y as the label for address 240 and z as the label for address 14.

a) 1100 0000 1111 0000
b) 0011 0000 0000 1110

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

a) Instruction format:

first 4 bits is opcode and last 12 bits represent address.

1 1 0 0 0 0 0 0 1 1 1 1 0 0 0 0

where 1100 is a operation code 'jumpneq'

0000 1111 0000 represent address which is (128+64+32+16=240) and address 240 is label as 'y'.

jumpneq y

if we not consider label then it is written as

jumpneq 240

b)

0 0 1 1 0 0 0 0 0 0 0 0 1 1 1 0

first 4 bits is opcode and last 12 bits represent address.

0011 is operation code 'ADD'

0000 0000 1110 represent address which is (8+4+2=14) and address 14 is label as 'z'

ADD z  

if we not consider label then it is written as

ADD 14

Add a comment
Know the answer?
Add Answer to:
What is the assembly language equivalent of each of the following binary machine language instructions? When...
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