EasyManuals Logo

Intel MCS 51 User Manual

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
Page #64 background imageLoading...
Page #64 background image
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

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Intel MCS 51 and is the answer not in the manual?

Intel MCS 51 Specifications

General IconGeneral
BrandIntel
ModelMCS 51
CategoryMicrocontrollers
LanguageEnglish

Related product manuals