Question

Provide the type and assembly language instruction for the following binary value: 0000 0001 0100 1000...

  1. Provide the type and assembly language instruction for the following binary value: 0000 0001 0100 1000 1010 1000 0010 0000 (binary)

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

0000 0001 0100 1000 1010 1000 0010 0000

Given Binary Format Change it to MIPS R-Type Instruction format as first 6 digits are 0's.

MIPS machine code format

32 bits total

opcode:6 bits

registers 1-3: 5 bits

r1=source,r2=source2,r3=destination

shift amount (SHAMT): 5 bits

function code: 6 bits

000000 10000 10000 10000 00000 100000
OPCODE(6 bits) RS(5 bits) RT(5 bits) RD(5 bits) SHAMT(5 bits)

FUNCTION(6 bits)

It is an R- Type as first 6 digits are 000000

RD: Register Destination

RS: 1st Source Register

RT: 2nd Source Register

Function:Which type of arithmetic

As we have 100000 in Function register we it indicates ADD Instruction

Typical ADD instruction in MIPS R-Type instruction looks like this

ADD $T1,$T2,$T3

Contents of $T2 and $T3 are added and stored in destination register $T1

As we have same register for source1, source2 and destination register we denote it by $T0

So instruction for the above binary code look somewhat like this

ADD $T0,$T0,$T0

Add a comment
Know the answer?
Add Answer to:
Provide the type and assembly language instruction for the following binary value: 0000 0001 0100 1000...
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