S3C72G9 Samsung semiconductor, S3C72G9 Datasheet - Page 50

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
   

CPSE
Operation:
Description:
Example:

dst,src
R,#im
@HL,#im
A,R
A,@HL
EA,@HL
EA,RR
CPSE compares the source operand (subtracts it from) the destination operand, and skips the
next instruction if the values are equal. Neither operand is affected by the comparison.
R,#im
@HL,#im
A,R
A,@HL
EA,@HL
EA,RR
The extended accumulator contains the value 34H and register pair HL contains 56H. The second
instruction (RET) in the instruction sequence
CPSE
RET
is not skipped. That is, the subroutine returns since the result of the comparison is 'not equal.'
Operand
Operand
EA,HL
Compare and skip if register equals #im
Compare and skip if indirect data memory equals #im
Compare and skip if A equals R
Compare and skip if A equals indirect data memory
Compare and skip if EA equals indirect data memory
Compare and skip if EA equals RR
d3
1
1
0
1
0
0
1
0
1
1
d2
1
1
1
0
1
1
1
1
0
1
d1
0
0
1
0
1
1
0
0
0
1
Binary Code
Operation Summary
d0

1
1
1
1
1
1
0
0
1
0
d3
1
0
1
1
1
1
1
1
1
1
d2
r2
r2
r2
0
1
1
0
1
0
1
d1
r1
r1
r1
0
0
0
0
0
0
0
d0
r0
r0
1
1
1
0
0
1
0
0
Skip if R = im
Skip if (HL) = im
Skip if A = R
Skip if A = (HL)
Skip if A = (HL), E = (HL+1)
Skip if EA = RR
Operation Notation
Bytes
2
2
2
1
2
2
 
Cycles
2 + S
2 + S
2 + S
1 + S
2 + S
2 + S

Related parts for S3C72G9