s3c72m9 Samsung Semiconductor, Inc., s3c72m9 Datasheet - Page 186

no-image

s3c72m9

Manufacturer Part Number
s3c72m9
Description
The S3c72m5/s3c72m7/s3c72m9 Single-chip Cmos Microcontroller Has Been Designed For High Performance Using Samsung S
Manufacturer
Samsung Semiconductor, Inc.
Datasheet
SAM47 INSTRUCTION SET
SBC —
SBC
Operation:
Description:
Examples:
5-82
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
Subtract with Carry
dst,src
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.
the carry flag is set to "1":
the carry flag is cleared to "0":
Operand
Operand
SCF
SBC
JPS
RCF
SBC
JPS
RRb,EA
RRb,EA
A,@HL
EA,RR
A,@HL
EA,RR
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 – 1H, C
0C3H – 0AAH – 0H = 19H, C
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
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
Bytes
"0"
1
2
2
"0"
Cycles
1
2
2

Related parts for s3c72m9