1
\$\begingroup\$

I am doing some practice problems involving MIPS assembly instructions and machine code(in hex). I am doing a problem but am uncertain if it is correct. This is the problem, and what I did:

addi 8,ドル 9,ドル -150
It is an I-type instruction, so I write it accordingly.
opcode: 001000
rs: 01001
rt: 01000
immediate: 1111111101101010
The answer I came up with is: OX2128FF6A

If anyone can check it and let me know if I have done it incorrectly or if you can offer any help/advice, I'd appreciate it. Thank you.

asked May 29, 2015 at 19:54
\$\endgroup\$
1
  • \$\begingroup\$ Your answer looks ok. \$\endgroup\$ Commented May 29, 2015 at 23:22

1 Answer 1

1
\$\begingroup\$

This handy site agrees with you.

answered May 29, 2015 at 19:57
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.