Next: Set program Mask Up: Insert Character Previous: Multiply Halfword

OR

The OR of the first and second operands is placed in the first-operand location.

Operands are treated as unstructured logical quantities, and the connective OR is applied bit by bit. A bit position in the result is set to one if the corresponding bit position in one or both operands contains a one; otherwise, the result bit is set to zero.

Resulting Condition Code:
0 ~ Result is zero
1 ~ Result not zero
2 ~ -
3 ~ -

Program Exceptions:
Access (fetch, operand 2, 0; fetch and store, operand 1, 0I)

Programming Note
The instruction OR may be used to set a bit to one.

The immediate byte's position in the operand is reversed. Given a word-aligned address D, bytes will be accessed as follows:


\begin{tabular}{ll}
Address  Bits 
D        D(31:24) 
D+1      D(23:16) 
D+2      D(15:8) 
D+3      D(7:0)



Next: Set program Mask Up: Insert Character Previous: Multiply Halfword


A.Daviel,TRIUMF