Intel Embedded Microcontroller Microscope & Magnifier User Manual


 
8XC251SA, SB, SP, SQ USER’S MANUAL
A-94
Example: The CY flag is set, input Port 3 contains 11000101B, and output Port 1 contains 35H
(00110101B). After executing the instruction sequence
MOV P1.3,CY
MOV CY,P3.3
MOV P1.2,CY
the CY flag is clear and Port 1 contains 39H (00111001B).
Variations
MOV bit51,CY
Binary Mode Source Mode
Bytes: 22
States: 2† 2†
†If this instruction addresses a port (P
x
,
x
= 0–3), add 2 states.
Hex Code in: Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation: MOV
(bit51) (CY)
MOV CY,bit51
Binary Mode Source Mode
Bytes: 22
States: 1† 1†
†If this instruction addresses a port (P
x
,
x
= 0–3), add 1 state.
Hex Code in: Binary Mode = [Encoding]
Source Mode = [Encoding]
Operation: MOV
(CY)(bit51)
MOV bit,CY
Binary Mode Source Mode
Bytes: 43
States: 4† 3†
†If this instruction addresses a port (P
x
,
x
= 0–3), add 2 states.
[Encoding]
Hex Code in: Binary Mode = [A5][Encoding]
Source Mode = [Encoding]
[Encoding] 1 0 0 1 0 0 1 0 bit addr
[Encoding] 1 0 1 0 0 0 1 0 bit addr
1 0 1 0 1 0 0 1 1 0 0 1 0 y y y direct addr