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

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)
ADS —
ADS
Examples:
(Continued)
2. If the extended accumulator contains the value 0C3H, register pair HL the value 12H, and
the carry flag = "0":
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):
Add and Skip on Overflow
immediately 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.
ADS
JPS
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.)
"0"
8H
8H + 6H = 0EH
7H, C
"0"
3H
3H + 6H = 9H
9H + 4H + C(0) = 0DH
0C3H + 12H = 0D5H, C
0DH + 0AH = 7H
"1"
SAM47 INSTRUCTION SET
"0"
5-27

Related parts for s3c72m9