S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 85

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
 

SBS
Operation:
Description:
Examples:
dst,src
A,@HL
EA,RR
RRb,EA
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.
A,@HL
EA,RR
RRb,EA
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
Operand
Operand
carry flag is cleared to logic zero:
RCF
SBS
JPS
JPS
carry flag is set to logic one:
SCF
SBS
JPS

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
; Skip because a borrow occurred
; C
; EA
; SBS instruction skips on borrow,
; but carry flag value is not affected
; 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
0AFH - 0AAH
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
   
Bytes
1
2
2
Cycles
1 + S
2 + S
2 + S


Related parts for S3C72G9