Sbc R,Q; Subtract With Carry Q-Register From R-Register; Set Carry Flag - Epson 6200A Core Cpu Manual

Core cpu cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

SBC r,q

Source Format:
Operation:
OP-Code:
Type:
Clock Cycles:
Flag:
Description:
Example:
SCF
Source Format:
Operation:
OP-Code:
Type:
Clock Cycles:
Flag:
Description:
Example:
S1C6200/6200A CORE CPU MANUAL

Subtract with carry q-register from r-register

SBC r,q
r
r - q - C
1 0 1 0 1 0 1 1
MSB
IV
7
C –
Set if a borrow is generated; otherwise, reset.
Z –
Set if the result is zero; otherwise, reset.
D –
Not affected
I –
Not affected
Subtracts the carry flag and the contents of the q-register from the r-register.
SBC A,B
A register
1110
B register
0010
Memory (MX)
1001
Memory (MY)
0100
C flag
1
Z flag
0

Set carry flag

SCF
C
1
1 1 1 1 0 1 0 0
MSB
VI
7
C –
Set
Z –
Not affected
D –
Not affected
I –
Not affected
Sets the C (carry) flag.
C flag
0
r
r
q
q
AB0H to ABFH
1
0
1
0
LSB
SBC MY,MX
1011
1011
0010
0010
1001
1001
0100
1011
0
0
0 0 0 1
F41H
LSB
SCF
1
EPSON
3 INSTRUCTION SET
1
0
77

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c6200S1c6200a

Table of Contents