124
EPSON
S1C63000 CORE CPU MANUAL
CHAPTER 4: INSTRUCTION SET
SBC %r,imm4
Subtract with carry immediate data imm4 from r reg.
1 cycle
Function:
r
←
r - imm4 - C
Subtracts the 4-bit immediate data imm4 and carry (C) from the r register (A or B).
Code:
Mnemonic
MSB
LSB
SBC %A,imm4
1
1
0
0
0
1
1
0
0 i3 i2 i1 i0
18C0H–18CFH
SBC %B,imm4
1
1
0
0
0
1
1
0
1 i3 i2 i1 i0
18D0H–18DFH
Flags:
E
I
C
Z
↓
–
↕
↕
Mode:
Src: Immediate data
Dst: Register direct
Extended addressing: Invalid
SBC %r,[%ir]
Subtract with carry location [ir reg.] from r reg.
1 cycle
Function:
r
←
r - [ir] - C
Subtracts the content of the data memory addressed by the ir register (X or Y) and carry (C)
from the r register (A or B).
Code:
Mnemonic
MSB
LSB
SBC %A,[%X]
1
1
0
0
0
1
1
1
0
0
0
0
0
18E0H
SBC %A,[%Y]
1
1
0
0
0
1
1
1
0
0
0
1
0
18E2H
SBC %B,[%X]
1
1
0
0
0
1
1
1
0
0
1
0
0
18E4H
SBC %B,[%Y]
1
1
0
0
0
1
1
1
0
0
1
1
0
18E6H
Flags:
E
I
C
Z
↓
–
↕
↕
Mode:
Src: Register indirect
Dst: Register direct
Extended addressing: Valid
Extended
LDB
%EXT,imm8
operation:
SBC
%r,[%X]
r
←
r - [00imm8] - C (00imm8 = 0000H + 00H to FFH)
LDB
%EXT,imm8
SBC
%r,[%Y]
r
←
r - [FFimm8] - C (FFimm8 = FF00H + 00H to FFH)
Содержание S1C63000
Страница 1: ...MF855 03 Core CPU Manual CMOS 4 BIT SINGLE CHIP MICROCOMPUTER S1C63000 ...
Страница 4: ......