You are here : assembly8051ADD

ADD - 8051

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.


Syntax

ADD A,B
ADD A,Rn


Example

;Adds contents of Destination with contents of A and the result is stored in A
ADD A,B		;1 byte 1 cycle
ADD A,#30h	;2 bytes 1 cycle
ADD A,20h	;2 bytes 1 cycle
ADD A,Rn	;1 byte 1 cycle
ADD A,@Ri	;1 byte 1 cycle


Output / Return Value


Limitations


Alternatives / See Also


Reference