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

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
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
SBC —
SBC
Examples:
3. If SBC A,@HL is followed by an ADS A,#im, the SBC skips on 'no borrow' to the instruction
a. 8 – 6 decimal addition (the contents of the address specified by the HL register is 6H):
b. 3 – 4 decimal addition (the contents of the address specified by the HL register is 4H):
Subtract with Carry
(Continued)
immediately after the ADS. An 'ADS A,#im' instruction immediately after the 'SBC A,@HL'
instruction does not skip even if an overflow occurs. This function is useful for decimal
adjustment operations.
RCF
LD
SBC
ADS
JPS
RCF
LD
SBC
ADS
JPS
A,#8H
A,@HL
A,#0AH
XXX
A,#3H
A,@HL
A,#0AH
XXX
; C
; A
; A
; Skip this instruction because no borrow after SBC result
; C
; A
; A
; No skip. A
; (The skip function of 'ADS A,#im' is inhibited after a
; 'SBC A,@HL' instruction even if an overflow occurs.)
"0"
8H
8H – 6H – C(0) = 2H, C
"0"
3H
3H – 4H – C(0) = 0FH, C
0FH + 0AH = 9H
SAM47 INSTRUCTION SET
"0"
"1"
5-83

Related parts for s3c72m9