Question

(4 points) Convert the following MIPS assembly language instructions to machine language instructions. Express our results in hexadecimal representations. (a) addi $s2, Ss1, 3 (b) slt Sso, St1, Szero
0 0
Add a comment Improve this question Transcribed image text
Answer #1

addi $s2, $s1, 1 : Add Immediate

$s2 = $s1 + 1

$s1 = r17 register = Source register

$s2 = r18 register = Destination register

Opcode Source Destination Immediate Value
00100 10001 10010 0000 0000 0000 0000
6 bit 5 bit 5 bit 16 bit

slt $s0, $t1, $zero : Set on less than (signed)

$s0 = r16 register = Destination register

$t1 = r9 register = Source 1 register

$zero = r0 register = Source 2 register

Opcode Source 1 Source 2 Destination
000000 01001 00000 10000 000 0010 1010
6 bit 5 bit 5 bit 5 bit 11 bit
Add a comment
Know the answer?
Add Answer to:
(4 points) Convert the following MIPS assembly language instructions to machine language instructions. Express our results...
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