EasyManua.ls Logo

Intel MCS 51 - Page 64

Intel MCS 51
334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
i~. M=@-51 PROGRAMMER’SGUIDE AND INSTRUCTION SET
ANL dire@ #dats
Bytes: 3
Cycles: 2
Encoding:
0101 0011 directaddress immediatedata
Operation:
ANL
(direct)+ (direct) A #data
ANL C,<src-bit>
Function:
Description:
ANL C,bit
Bytes:
Cycles:
Encoding:
Operation:
ANL C,/bit
Bytes:
Cycles:
Encoding:
Operation:
Logioal-ANDfor bit variables
If theBooleanvalueofthe sourcebit isa logicalOthen clear the carryflag;otherwiseleavethe
carry flagin its current stste. A slash(“/”) precedingthe operandin the assemblylanguage
indicatesthat the logicalcomplementofthe addressedbit is usedas the sourcevaluq
but the
source bit itself &not affwed. No
otherflsgs are affected.
Onlydirect addressingis allowedfor the source-d.
Setthe carry flagif, and onlyif, P1.O= 1,ACC. 7 = 1,and OV = O:
MOV C,P1.O
ANL ~ACC.7
ANL C,/OV
2
2
;LOADCARRYWITH INPUT PIN STATE
;AND CARRY WITH ACCUM. BIT 7
;AND WITH INVERSEOF OVERFLOWFLAG
1000
100101 H
ANL
(C) ~ (C)
A (bit)
2
.
1o11 0000
=
ANL
(C) + (C)A 1
(bit)
2-34

Table of Contents

Related product manuals