or

Sizes

byte, word, long

Default Size

word

Affected Flags

X
N
Z
V
C
-
✱
✱
0
0

Operands

Op 1
Dn/(An)/d(An)/d(An,Xn)/Ea/<label>/d(PC)/d(PC,Xn)/Im
Op 2
Dn/(An)/d(An)/Ea/<label>/d(An,Xn)

Performs a logical OR between the first and second operand, stores the result in the second operand

move.l #%11110000, d0
move.l #%10101010, d1
or.b d1, d0 ; d0 = %11111010

* --- Use for setting specific bits ---
move.l #$00, d2
or.b #%00000101, d2 ; set bits 0 and 2