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\$
1
  • \$\begingroup\$ Your answer looks ok. \$\endgroup\$
    – tcrosley
    Commented May 29, 2015 at 23:22

1 Answer 1

1
\$\begingroup\$

This handy site agrees with you.

\$\endgroup\$

Your Answer

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

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