or
OR Logical Operation
or RT,RA,RB
miso
miso
Performs a bitwise OR operation on the contents of two registers and places the result in a third register.
Details
The or instruction performs a bitwise OR operation on the contents of register RA and RB, placing the result into register RT. This instruction does not affect the PPRPRI field.
Programming Note
Warning: Other forms of or Rx,Rx,Rx that are not described in this section and in Section 4.3.3 may also cause program priority to change. Use of these forms should be avoided except when software explicitly intends to alter program priority. If a no-op is needed, the preferred no-op (ori 0,0,0) should be used.
Extended Mnemonics
| Extended Mnemonic | Equivalent Instruction |
|---|---|
Example
or r3, r4, r5
Encoding
Binary Layout
31
0
RS
6
RA
30
RB
31
444
Rc
Operands
-
RA
Target Register -
RS
Source Register 1 -
RB
Source Register 2 -
RT
Target General Purpose Register