andi

Sizes

byte, word, long

Default Size

word

Affected Flags

X
N
Z
V
C
-
✱
✱
0
0

Operands

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

Performs a logical AND between the first immediate value and second operand, stores the result in the second operand

move.l #$ABCD, d0
andi.w #$FF00, d0 ; keep high byte only: d0 = $AB00