beautypg.com

Texas Instruments MSC1210 User Manual

Page 290

background image

8052 Instruction Set

E-6

ANL

Bitwise AND

Syntax

ANL operand1,operand2

Instructions

OpCode

Bytes

Cycles

Flags

ANL direct,A

0x52

2

1

None

ANL direct,#data8

0x53

3

2

None

ANL A,#data8

0x54

2

1

None

ANL A,direct

0x55

2

1

None

ANL A,@R0

0x56

1

1

None

ANL A,@R1

0x57

1

1

None

ANL A,R0

0x58

1

1

None

ANL A,R1

0x59

1

1

None

ANL A,R2

0x5A

1

1

None

ANL A,R3

0x5B

1

1

None

ANL A,R4

0x5C

1

1

None

ANL A,R5

0x5D

1

1

None

ANL A,R6

0x5E

1

1

None

ANL A,R7

0x5F

1

1

None

ANL C,bitAddr

0x82

2

1

C

ANL C,/bitAddr

0xB0

2

1

C

ANL does a bitwise AND operation between operand1 and operand2, leaving
the resulting value in operand1. The value of operand2 is not affected. A logical
AND compares the bits of each operand and sets the corresponding bit in the
resulting byte only if the bit was set in both of the original operands. Otherwise,
the resulting bit is cleared.

See also: ORL, XRL