andi.
AND Immediate
PPC440x5 CPU Core User’s Manual Preliminary
Page 266 of 589
instrset.fm.
September 12, 2002
andi.
AND Immediate
(RA) ← (RS) ∧ (
16
0 || IM)
The IM field is extended to 32 bits by concatenating 16 0-bits on its left. The contents of register RS is ANDed
with the extended IM field; the result is placed into register RA.
Registers Altered
•RA
• CR[CR0]
Programming Note
The andi. instruction can test whether any of the 16 least-significant bits in a GPR are 1-bits.
andi. is one of three instructions that implicitly update CR[CR0] without having an Rc field. The other instruc-
tions are addic. and andis..
andi. RA, RS, IM
28 RS RA IM
0 6 11 16 31