![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/2/8d/28d7bc37-c618-49b2-b7e5-c87e323504bb/28d7bc37-c618-49b2-b7e5-c87e323504bb-bg5a.png)
84 EPSON S1C63000 CORE CPU MANUAL
CHAPTER 4: INSTRUCTION SET
CMP %r,%r’
CMP %r,imm4 Compare r reg. with immediate data imm4 1 cycle
Function: r - imm4
Subtracts the 4-bit immediate data imm4 from the content of the r register (A or B). It changes
the flags (Z and C), but does not change the content of the register.
Code:
Mnemonic MSB LSB
CMP %A,imm4 111100100i3i2i1i01E40H–1E4FH
CMP %B,imm4 111100101i3i2i1i01E50H–1E5FH
Flags: EICZ
↓ – ↕↕
Mode: Src: Immediate data
Dst: Register direct
Extended addressing: Invalid
Compare r reg. with r’ reg. 1 cycle
Function: r - r’
Subtracts the content of the r’ register (A or B) from the content of the r register (A or B). It
changes the flags (Z and C), but does not change the content of the register.
Code:
Mnemonic MSB LSB
CMP %A,%A 111100111X0001E70H, (1E78H)
CMP %A,%B 111100111X0101E72H, (1E7AH)
CMP %B,%A 111100111X1001E74H, (1E7CH)
CMP %B,%B 111100111X1101E76H, (1E7EH)
Flags: EICZ
↓ – ↕↕(r ≠ r’)
↓ – ↓↑(r = r’)
Mode: Src: Register direct
Dst: Register direct
Extended addressing: Invalid