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

no-image

gc41c501g1-so24i

Manufacturer Part Number
gc41c501g1-so24i
Description
4-bit Microcontrollers With Reduced 8051 Architecture
Manufacturer
CORERIVER Semiconductor
Datasheet
ADD A, #data
ADD A, @DP
Appendix A : Instruction Set (3/19)
Binary Code
Binary Code
Description
Description
Carry Flag
Carry Flag
Operation
Operation
Example
Example
Cycles
Cycles
Bytes
Bytes
Adds the 4-bit data to the Accumulator.
The result is stored in Accumulator.
When adding unsigned integers, the carry flag
indicates an overflow.
(A) ← (A) + #data
Set if a carry occurred, cleared otherwise.
1
1
CLR A
ADD A, #2
Adds the contents of indirect data memory to
the Accumulator. The result is stored in
Accumulator. When adding unsigned integers,
the carry flag indicates an overflow.
(A) ← (A) + M[DP]
Set if a carry occurred, cleared otherwise.
1
1
; Assumes M[DP] contains 2
MOV A, #8
ADD A, @DP
0001
0000
dddd
1000
; Set ACC as 8.
; The result, 10 is stored in ACC.
; Add 2 to ACC. ACC contains 2.
; Clear ACC
ADDC A, @DP
Binary Code
Description
Carry Flag
Operation
Example
Cycles
Bytes
Simultaneously adds the contents of indirect
data memory, the carry flag and the
Accumulator. The result is stored in
Accumulator.
When adding unsigned integers, the carry flag
indicates an overflow.
(A) ← (A) + M[DP] + (C)
Set if a carry occurred, cleared otherwise.
1
1
; Assumes M[DP] contains 2 and C is 1.
MOV A, #8
ADDC A, @DP ; The result, 11 is stored in ACC.
0000
ATOM1.0 Family
1001
; Set ACC as 8.
Preliminary
[38]

Related parts for gc41c501g1-so24i