EasyManua.ls Logo

Epson S1C6200A - Compare Immediate Data I with Yh; Compare Immediate Data I with Yl; Cp Yh,I; Cp Yl,I

Epson S1C6200A
98 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Source Format:
Operation:
OP-Code:
Type:
Clock Cycles:
Flag:
Description:
Example:
Source Format:
Operation:
OP-Code:
Type:
Clock Cycles:
Flag:
Description:
Example:
MSB LSB
MSB LSB
C
Z
D
I
C
Z
D
I
S1C6200/6200A CORE CPU MANUAL EPSON 37
3 INSTRUCTION SET
CP YH,i Compare immediate data i with YH
CP YH,i
YH - i
3 to i0
10100110i3 i2 i1 i0 A60H to A6FH
IV
7
Set if YH < i3 to i0; otherwise, reset.
Set if YH = i
3 to i0; otherwise, reset.
Not affected
Not affected
Compares immediate data i to YH by subtracting i from the contents of YH. YH
remains unchanged.
1. When Z = 0 and C = 0 then i < YH
2. When Z = 1 and C = 0 then i = YH
3. When Z = 0 and C = 1 then i > YH
CP YH,0AH CP YH,3 CP YH,0FH
YH register 1010 1010 1010 1010
C flag 1 0 0 1
Z flag 0 1 0 0
CP YL,i Compare immediate data i with YL
CP YL,i
YL - i
3 to i0
10100111i3 i2 i1 i0 A70H to A7FH
IV
7
Set if YL < i3 to i0; otherwise, reset.
Set if YL = i
3 to i0; otherwise, reset.
Not affected
Not affected
Compares immediate data i to YL by subtracting i from the contents of YL. YL
remains unchanged.
1. When Z = 0 and C = 0 then i < YL
2. When Z = 1 and C = 0 then i = YL
3. When Z = 0 and C = 1 then i > YL
CP YL,5 CP YL,1 CP YL,4
YL register 0100 0100 0100 0100
C flag 0 1 0 0
Z flag 1 0 0 1
Source Format:
Operation:
OP-Code:
Type:
Clock Cycles:
Flag:
Description:
Example:
Source Format:
Operation:
OP-Code:
Type:
Clock Cycles:
Flag:
Description:
Example:

Table of Contents

Related product manuals