gc41c501g1-so24i CORERIVER Semiconductor, gc41c501g1-so24i Datasheet - Page 44

no-image

gc41c501g1-so24i

Manufacturer Part Number
gc41c501g1-so24i
Description
4-bit Microcontrollers With Reduced 8051 Architecture
Manufacturer
CORERIVER Semiconductor
Datasheet
CPL A
DEC @DP
Appendix A : Instruction Set (9/19)
Binary Code
Binary Code
Description
Description
Carry Flag
Carry Flag
Operation
Operation
Example
Example
Cycles
Cycles
Bytes
Bytes
Complements the contents of ACC.
(A) ← ~(A)
Not affected.
1
1
MOV A, P0
CPL A
Decrements the value of data memory
addressed indirectly by DPTR.
M[DP] ← M[DP] - 1
Not affected.
1
1
DEC @DP
0000
0000
1010
0111
; complement of P0
; (A) ← P0
; ACC contains 1's
DEC A
DEC DPTR
Binary Code
Binary Code
Description
Description
Carry Flag
Carry Flag
Operation
Operation
Example
Example
Cycles
Cycles
Bytes
Bytes
Decrements the contents of ACC.
This is the same as "ADD A, #15".
Carry is cleared when the borrow occurs;
(A) ← (A) + 15
IF (A) = 0 THEN C ← 0
1
1
DEC A
Decrements the data pointer.
(DP) ← (DP) - 1
Not affected.
1
1
; Assumes DPTR contains 0.
DEC DPTR
DEC DP
otherwise, carry is set.
0001
0000
ATOM1.0 Family
1111
0101
ELSE C ← 1.
; By underflow, all bits
; This is also valid.
; of DPH and DPL are set.
Preliminary
[44]

Related parts for gc41c501g1-so24i