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 - i3 to i0
10100110i3i2i1i0A60H to A6FH
IV
7
Set if YH < i3 to i0; otherwise, reset.
Set if YH = i3 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 - i3 to i0
10100111i3i2i1i0A70H to A7FH
IV
7
Set if YL < i3 to i0; otherwise, reset.
Set if YL = i3 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: