Intel 8XC251SQ manual MOV CY,P1.0, Anl Cy,/Ov, ANL CY,bit51 Binary Mode Source Mode Bytes States

Models: Embedded Microcontroller 8XC251SP 8XC251SA 8XC251SQ 8XC251SB

1 458
Download 458 pages 25.38 Kb
Page 292
Image 292

8XC251SA, SB, SP, SQ USER’S MANUAL

Flags:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CY

AC

 

OV

 

N

Z

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Example:

 

 

 

 

 

 

Set the CY flag if, and only if, P1.0 = 1, ACC. 7 = 1, and OV = 0:

 

 

 

MOV CY,P1.0

;Load carry with input pin state

 

 

 

 

ANL CY,ACC.7 ;AND carry with accumulator bit 7

 

 

 

 

ANL CY,/OV

;AND with inverse of overflow flag

 

 

 

 

 

 

 

 

 

 

 

 

ANL CY,bit51

 

 

 

 

 

 

 

 

 

Binary Mode Source Mode

 

 

 

 

 

Bytes:

2

2

 

 

 

 

 

 

States:

1†

1†

 

 

 

 

 

†If this instruction addresses a port (Px, x = 0–3), add 1 state.

[Encoding]

1 0 0 0

 

0 0 1 0

 

 

bit addr

 

 

 

 

 

 

 

 

Hex Code in:

Binary Mode = [Encoding]

 

 

 

 

 

Source Mode = [Encoding]

 

 

 

 

Operation:

ANL

 

 

 

 

 

 

 

(CY) (CY) Λ (bit51)

 

 

 

 

 

 

 

 

 

 

 

 

ANL CY,/bit51

 

 

 

 

 

 

 

 

Binary Mode Source Mode

Bytes:

 

2

 

2

 

 

 

States:

 

1†

1†

†If this instruction addresses a port (Px, x = 0–3), add 1 state.

[Encoding]

1 0 1 1

0 0 0 0

 

bit addr

 

 

 

 

 

Hex Code in:

Binary Mode = [Encoding]

 

 

 

Source Mode = [Encoding]

 

 

Operation:

ANL

 

 

 

(CY) (CY) Λ Ø (bit51)

ANL CY,bit

Binary Mode Source Mode

Bytes:

4

3

 

 

States:

 

3†

 

2†

 

 

 

 

 

†If this instruction addresses a port (Px, x = 0–3), add 1 state.

[Encoding]

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1 0 1 0

 

1 0 0 1

 

1 0 0 0

0

y y y

 

 

 

 

 

 

 

 

Hex Code in:

Binary Mode = [A5][Encoding]

 

 

 

 

Source Mode = [Encoding]

 

 

dir addr

A-40

Page 292
Image 292
Intel 8XC251SQ, 8XC251SA, 8XC251SP, 8XC251SB manual MOV CY,P1.0, Anl Cy,/Ov, ANL CY,bit51 Binary Mode Source Mode Bytes States