2

I'm doing a homework assignment and I am puzzled with which one I should use. What does the i add to the command.

1 Answers1

8
  • OR performs the bitwise OR operation between two registers.
  • ORI performs the bitwise OR operation between one register, and an immediate value

If you have two registers you want to OR together, then use OR. If you want to OR a register with some constant value, use ORI.

Questions like this should always be addressed by first consulting an instruction set reference.

Jonathon Reinhart
  • 132,704
  • 33
  • 254
  • 328