S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 28

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
   

ADS
Examples:

(Continued)
2. If the extended accumulator contains the value 0C3H, register pair HL the value 12H, and
3. If 'ADC A,@HL' is followed by an 'ADS A,#im', the ADC skips on overflow to the instruction
a. 8 + 9 decimal addition (the contents of the address specified by the HL register is 9H):
b. 3 + 4 decimal addition (the contents of the address specified by the HL register is 4H):
the carry flag = "0":
ADS
JPS
mmediately after the ADS. An 'ADS A,#im' instruction immediately after the 'ADC A,@HL'
does not skip even if overflow occurs. This function is useful for decimal adjustment
operations.
RCF
LD
ADS
ADC
ADS
JPS
RCF
LD
ADS
ADC
ADS
JPS
EA,HL
XXX
A,#8H
A,#6H
A,@HL
A,#0AH
XXX
A,#3H
A,#6H
A,@HL
A,#0AH
XXX

; EA
; Jump to XXX; no skip after ADS.
; C
; A
; A
; A
; Skip this instruction because C = "1" after ADC result.
; C
; A
; A
; A
; No skip. A
; (The skip function for 'ADS A,#im' is inhibited after an
; 'ADC A,@HL' instruction even if an overflow occurs.)
8H
8H + 6H = 0EH
0EH + 9H + C(0) = 7H, C
3H
3H + 6H = 9H
9H + 4H + C(0) = 0DH, C
"0"
"0"
0C3H + 12H = 0D5H
0DH + 0AH = 7H
"1"
"0"
 

Related parts for S3C72G9