
Chapter 5
5.3 Instruction Description
5.3.1 ADD – Addition
Syntax ADD A, R
Encoding
0 0011
10rr rrrr
Operation
A+R
→
A
Status Affected
Z, C, DC
Description
Add the contents of data memory R to the accumulator. Place the result in
the accumulator.
Example
ADD A, 0x10
;
add Acc with R10
ADD A, 0x01
;
add Acc with R1
Syntax ADD R, A
Encoding
0 0011
11rr rrrr
Operation
A+RR
Status Affected
Z, C, DC
Description
Add the contents of the accumulator to data memory R. Place the result in
R.
Example
ADD 0x10, A
;
add R10 with Acc
ADD 0x01, A
;
add R1 with Acc
Syntax ADD A, @k
Encoding
1 1111
kkkk
kkkk
Operation
A+k
→
A
Status Affected
Z, C, DC
Description
Add the immediate data (8-bit literal) to the accumulator. Place the result in
the accumulator.
Example
ADD A, @0x20
;
add Acc with 20
ADD A, @0x01
;
add Acc with 1
50
•
Instruction Set
EM60000Series User’s Manual
Содержание EM60000 series
Страница 8: ...Contents viii Contents EM60000 Series User s Manual ...
Страница 24: ...Chapter 2 16 Architecture EM60000 Series User s Manual ...
Страница 54: ...Chapter 4 46 Special Function Control EM60000Series User s Manual ...
Страница 80: ...Chapter 5 72 Instruction Set EM60000Series User s Manual ...