S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 26

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
   

ADC
Examples:

(Continued)
3. If ADC A,@HL is followed by an ADS A,#im, the ADC skips on carry 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):
immediately after the ADS. An ADS instruction immediately after the ADC does not skip even
if an overflow occurs. This function is useful for decimal adjustment operations.
RCF
LD
ADS
ADC
ADS
JPS
RCF
LD
ADS
ADC
ADS
JPS
XXX

A,#8H
A,#6H
A,@HL
A,#0AH
XXX
A,#3H
A,#6H
A,@HL
A,#0AH
; 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), C
3H
3H + 6H = 9H
9H + 4H + C(0) = 0DH
"0"
"0"
0DH + 0AH = 7H
"1"
 

Related parts for S3C72G9