Crossware

Table of Contents        Previous topic       Next topic       

MICROPROCESSOR INSTRUCTION REFERENCE->AND

AND    Logical AND

Compatibility: 68000, 68010, 68020, CPU32 families

Destination 'AND' Source -> Destination


Assembler Syntax:AND <ea>,Dn
AND Dn,<ea>

Source <ea> - data
Destination <ea>  - alterable memory

Size:  Byte, Word or Long

Performs an AND operation of the source operand with the destination operand and stores the result in the destination location.

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

    
Allowable Addressing Modes
    
<ea>,Dn Dn,<ea>
    
ANDDn,Dn
AND(An),Dn ANDDn,(An)
AND(An)+,DnANDDn,(An)+
AND-(An),DnANDDn,-(An)
AND(d16,An),DnANDDn,(d16,An)
AND(d8,An,Xn),DnANDDn,(d8,An,Xn)
AND(bd,An,Xn),Dn 2ANDDn,(bd,An,Xn) 2
AND([bd,An,Xn],od),Dn 1ANDDn,([bd,An,Xn],od) 1
AND([bd,An],Xn,od),Dn 1ANDDn,([bd,An],Xn,od) 1
AND(xxx).W,DnANDDn,(xxx).W
AND(xxx).L,DnANDDn,(xxx).L
AND#(data),Dn
AND(d16,PC),Dn
AND(d8,PC,Xn),Dn
AND(bd,PC,Xn),Dn 2
AND([bd,PC,Xn],od),Dn 1
AND([bd,PC],Xn,od),Dn 1
1   68020 only
2   68020 and CPU32 only