S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 84

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
Examples:

(Continued)
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):
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.)
8H
8H - 6H - C(0) = 2H, C
"0"
"0"
3H
3H - 4H - C(0) = 0FH, C
0FH + 0AH = 9H
"0"
"1"
 

Related parts for S3C72G9