MSM80C154S/83C154S/85C154HVS

17. ANL data address, #data (Logical AND immediate data to memory)

 

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Instruction code

:

 

0

 

1

 

0

 

1

0

0

1

1

Byte 1

 

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Data address

 

a7

a6

a5

a4

a3

a2

a1

a0

Byte 2

 

 

 

7

 

 

 

 

 

 

 

 

 

0

 

#data

 

 

I7

 

I6

 

I5

 

I4

I3

I2

I1

I0

Byte 3

Operation

: (data address)(data address) AND #data

 

Number of bytes

: 3

 

 

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 2

 

 

 

 

 

 

 

 

 

 

 

 

Flags

:

 

C

AC

F0

RS1

RS0

OV

F1

P

 

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

: The logical AND between an 8-bit immediate data value and the

 

 

specified data address contents is determined. The result is

 

 

placed in the specified data address.

 

 

Example ANL DPH, #0AAH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

0

 

 

 

 

 

Instruction code

:

0

1

0

1

0

0

1

1

Byte 1

 

 

 

 

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

1

0

0

0

0

0

1

1

Byte 2

 

 

 

 

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

1

0

1

0

1

0

1

0

Byte 3

 

 

 

Before execution

DPH

1 1 1 1 1 1 1 1

70

After execution

DPH

1 0 1 0 1 0 1 0

70

262

Page 269
Image 269
Sonic Alert msm85c154hvs, msm83c154s, msm80154s user manual 262, Dph