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

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
SAM47 INSTRUCTION SET
ADS —
ADS
Operation:
Description:
Examples:
5-26
1.
Add and Skip on Overflow
dst,src
The source operand is added to the destination operand and the sum is stored in the destination.
The contents of the source are unaffected. If there is an overflow from the most significant bit of the
result, the skip signal is generated and a skip is executed, but the carry flag value is unaffected.
If 'ADS A,#im' follows an 'ADC A,@HL' instruction in a program, ADC skips the ADS instruction if
an overflow occurs. If there is no overflow, the ADS instruction is executed normally. This skip
condition is valid only for 'ADC A,@HL' instructions, however. If an overflow occurs following an
ADS instruction, the next instruction is not skipped.
Operand
EA,#imm
Operand
EA,#imm
The extended accumulator contains the value 0C3H, register pair HL the value 0AAH, and
the carry flag = "0":
ADS
JPS
JPS
RRb,EA
RRb,EA
A,@HL
EA,RR
A,@HL
A, #im
EA,RR
A, #im
EA,HL
XXX
YYY
Add 4-bit immediate data to A and skip on overflow
Add 8-bit immediate data to EA and skip on overflow
Add indirect data memory to A and skip on overflow
Add register pair (RR) contents to EA and skip on
overflow
Add EA to register pair (RRb) and skip on overflow
d7
1
1
0
1
1
1
1
d6
0
1
0
1
0
1
0
d5
1
0
1
0
0
0
0
Binary Code
Operation Summary
d4
0
0
1
1
1
1
1
; EA
; ADS skips on overflow, but carry flag value is not
; affected.
; This instruction is skipped since ADS had an overflow.
; Jump to YYY.
d3
d3
1
1
1
1
1
0
d2
d2
r2
r2
0
1
1
1
0C3H + 0AAH = 6DH, C
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
d1
d1
r1
r1
0
1
0
0
d0
d0
1
1
0
0
0
0
A
EA
A
EA
RRb
A + im; skip on overflow
A + (HL); skip on overflow
EA + imm; skip on overflow
EA + RR; skip on overflow
Operation Notation
RRb + EA; skip on overflow
Bytes
1
2
1
2
2
"0"
Cycles
1 + S
2 + S
1 + S
2 + S
2 + S

Related parts for s3c72m9