Keil Logo

ADD

The ADD instruction adds a byte value to the accumulator and stores the results back in the accumulator. Several of the flag registers are affected.

See Also: ADDC, SUBB

ADD A, #immediate
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
00100100 immediate
Operation
A = A + immediate
Example
ADD A, #03h
ADD A, @Ri
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
0010011i
Operation
A = A + (Ri)
Example
ADD A, @R1
ADD A, direct
C AC F0 RS1 RS0 OV   P
Bytes 2
Cycles 1
Encoding
00100101 direct
Operation
A = A + (direct)
Example
ADD A, 20h
ADD A, Rn
C AC F0 RS1 RS0 OV   P
Bytes 1
Cycles 1
Encoding
00101nnn
Operation
A = A + Rn
Example
ADD A, R0
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.