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.

\$\endgroup\$
  • \$\begingroup\$ Your answer looks ok. \$\endgroup\$ – tcrosley May 29 '15 at 23:22
1
\$\begingroup\$

This handy site agrees with you.

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.