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

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
SBS —
SBS
Operation:
Description:
Examples:
5-84
1. The accumulator contains the value 0C3H, register pair HL contains the value 0C7H, and the
2. The accumulator contains the value 0AFH, register pair HL contains the value 0AAH, and the
Subtract
dst,src
The source operand is subtracted from the destination operand and the result is stored in the
destination. The contents of the source are unaffected. A skip is executed if a borrow occurs. The
value of the carry flag is not affected.
carry flag is cleared to logic zero:
carry flag is set to logic one:
Operand
Operand
RCF
SBS
JPS
JPS
SCF
SBS
JPS
RRb,EA
RRb,EA
A,@HL
EA,RR
A,@HL
EA,RR
Subtract indirect data memory from A; skip on borrow
Subtract register pair (RR) from EA; skip on borrow
Subtract EA from register pair (RRb); skip on borrow
EA,HL
XXX
YYY
EA,HL
XXX
0
1
1
1
1
0
1
0
1
0
1
0
1
0
1
Binary Code
Operation Summary
1
1
1
1
1
; C
; EA
; SBS instruction skips on borrow,
; but carry flag value is not affected
; Skip because a borrow occurred
; Jump to YYY is executed
; C
; EA
; Jump to XXX
; JPS was not skipped since no "borrow" occurred after
; SBS
1
1
1
1
0
r2
r2
1
1
1
"0"
"1"
0C3H – 0C7H, C
0AFH – 0AAH, C
S3C72M5/C72M7/C72M9/P72M9 (Preliminary Spec)
r1
r1
0
0
0
1
0
0
0
0
A
EA
RRb
A – (HL); skip on borrow
EA – RR; skip on borrow
Operation Notation
RRb – EA; skip on borrow
"0"
"1"
Bytes
1
2
2
Cycles
1 + S
2 + S
2 + S

Related parts for s3c72m9