INSTRUCTION SET

ADD A,R r Add Register Contents to Accumulator

1011011rrri

The contents of register 'r'are added to the accumulator. Carry is affected.

(A) ....

(A) + (Rr)

r=0-7

Example: ADDREG: ADD A,R6 ;ADD REG 6 CONTENTS ;TO ACC

ADD A,@R r Add Data Memory Contents to Accumulator

101101000ri

The contents of the resident data memory location addressed by register 'r'bits 0-5*are added to

the accumulator. Carry is affected.

(A) .....(A) + ((Rr))

r=0-1

Example: ADDM: MOV RO, #01 FH ;MOVE '1F'HEX TO REG 0

ADD A, @RO ;ADD VALUE OF LOCATION

;31 TO ACC

ADD A,#data Add Immediate Data to Accumulator

100 0 0 10 0 1 11 Id7 d6 ds d4 Id3 d2 d1 do I

This is a 2-cycle instruction. The specified data is added to the accumulator. Carry is affected

(A) .... (A) + data

Example: ADDID: ADD A,#ADDER: ;ADD VALUE OF SYMBOL ;'ADDER'TO ACC

ADDC A,R r Add Carry and Register Contents to Accumulator

1011111rrri

The content of the carry bit is added to accumulator location 0 and the carry bit cleared. The contents of register 'r'are then added to the accumulator. Carry is affected.

(A) .... (A)+(Rr)+(C) r=0-7

Example: ADDRGC: AD DC A,R4 ;ADD CARRY AND REG 4 ;CONTENTS TO ACC

Mnemonics copyright Intel Corporation 1976.

'0-6for8039/8049

4-9

Page 82
Image 82
Intel mcs-48 manual ADD A,R r Add Register Contents to Accumulator, ADD A,@R r Add Data Memory Contents to Accumulator