Reputation: 39
I'm doing a homework assignment and I am puzzled with which one I should use. What does the i add to the command.
Upvotes: 2
Views: 10622
Reputation: 137398
OR
performs the bitwise OR operation between two registers.ORI
performs the bitwise OR operation between one register, and an immediate valueIf 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.
Upvotes: 8