Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->ANDI

ANDI   AND Immediate

Compatibility: 68000, 68010, 68020, CPU32 families

Destination AND Immediate Data -> Destination


Assembler Syntax:  ANDI #<data>,<ea>


<ea> - data alterable and SR

Size:  Byte, Word or Long

Performs an AND operation of the immediate data with the destination operand and stores the result in the destination location.  The size of the immediate data matches the operation size.

Condition Codes:

N    Set if most significant bit of result is set, else cleared
Z    Set if result zero, else cleared
V    Always cleared
C    Always cleared
X    Not affected

unless <ea> = SR when the condition codes are are affected according to the operation
    
Allowable Addressing Modes
    
ANDI#(data),Dn
ANDI#(data),(An)
ANDI#(data),(An)+
ANDI#(data),-(An)
ANDI#(data),(d16,An)
ANDI#(data),(d8,An,Xn)
ANDI#(data),(bd,An,Xn) 2
ANDI#(data),([bd,An,Xn],od) 1
ANDI#(data),([bd,An],Xn,od) 1
ANDI#(data),(xxx).W
ANDI#(data),(xxx).L
ANDI#(data),CCR (byte)
ANDI#(data),SR (word)
1   68020 only
2   68020 and CPU32 only