S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 83

no-image

S3C72G9

Manufacturer Part Number
S3C72G9
Description
The S3C72G9 single-chip CMOS microcontroller has been designed for high performance using Samsungs newest 4-bit CPU core/ SAM47 (Samsung Arrangeable M
Manufacturer
Samsung semiconductor
Datasheet
 

SBC
Operation:
Description:
Examples:
dst,src
A,@HL
EA,RR
RRb,EA
SBC subtracts the source and carry flag value from the destination operand, leaving the result in
the destination. SBC sets the carry flag if a borrow is needed for the most significant bit; otherwise
it clears the carry flag. The contents of the source are unaffected.
If the carry flag was set before the SBC instruction was executed, a borrow was needed for the
previous step in multiple precision subtraction. In this case, the carry bit is subtracted from the
destination along with the source operand.
A,@HL
EA,RR
RRb,EA
1. The extended accumulator contains the value 0C3H, register pair HL the value 0AAH, and
2. If the extended accumulator contains the value 0C3H, register pair HL the value 0AAH, and
Operand
Operand
the carry flag is set to "1":
SCF
SBC
JPS
the carry flag is cleared to "0":
RCF
SBC
JPS
Subtract indirect data memory from A with carry
Subtract register pair (RR) from EA with carry
Subtract EA from register pair (RRb) with carry
EA,HL
XXX
EA,HL
XXX
0
1
1
1
1

0
1
1
1
1
1
0
0
0
0
Binary Code
Operation Summary
1
1
0
1
0
; C
; EA
; Jump to XXX; no skip after SBC
; C
; EA
; Jump to XXX; no skip after SBC
1
1
1
1
0
r2
r2
1
1
1
"1"
"0"
0C3H - 0AAH - 0H = 19H, C
0C3H - 0AAH - 1H, C
r1
r1
0
0
0
0
0
0
0
0
C,A
C, EA
C,RRb
A - (HL) - C
Operation Notation
EA -RR - C
RRb - EA - C
   
"0"
Bytes
2
1
2
"0"
Cycles
2
1
2


Related parts for S3C72G9