Sonic Alert msm83c154s, msm80154s ANL A, @Rr Logical and indirect address to accumulator, 257

Models: msm83c154s msm85c154hvs msm80154s

1 378
Download 378 pages 26.51 Kb
Page 264
Image 264

DESCRIPTION OF INSTRUCTIONS

12. ANL A, @Rr (Logical AND indirect address to accumulator)

 

 

7

 

 

 

 

 

 

 

 

0

 

Instruction code

:

0

1

0

1

 

0

 

1

1

r

Byte 1

Operation

: (A)(A) AND ((Rr)) r=0 or 1

 

 

 

 

Number of bytes

: 1

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 1

 

 

 

 

 

 

 

 

 

 

Flags

:

C

AC

F0

RS1

RS0

OV

F1

P

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

: The logical AND between the accumulator contents and the

 

 

data memory location contents addressed by the register r

 

 

contents is determined. The result is placed in the accumulator

 

 

and the flag is updated.

 

 

 

 

 

 

Example ANL A, @R0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

0

 

 

 

 

 

 

 

Instruction code

:

0 1

0 1

0 1

1 0

 

Byte 1

 

 

 

Before execution Accumulator

1 0 1 0 1 1 1 0

70 Register 0

0 1 0 1 1 0 0 0

70 RAM 58H

1 1 1 1 1 0 1 0

70

After execution Accumulator

1 0 1 0 1 0 1 0

70 Register 0

0 1 0 1 1 0 0 0

70 RAM 58H

1 1 1 1 1 0 1 0

70

257

Page 264
Image 264
Sonic Alert msm83c154s, msm80154s, msm85c154hvs user manual ANL A, @Rr Logical and indirect address to accumulator, 257