ADC

ADC R[x], R[y], R[z] - Addition with Carry

 

Operating Mode

 

R[x] := R[y] + R[z] + C

PC := PC + 1

 

Description

 

Adds contents of Registers  R[y], R[z] and Carry and writes result to Register R[x].

 

Status Register

 

Carry-Bit := 1 if  result from R[y] + R[z] + C_old has Carry

Zero - Bit := 1 if result = 0

 

 

Binary Command

15 14 13 12 11

10 9 8

7 6

5 4 3

2 1 0

10111

Adr(x)

--

Adr(y)

Adr(z)

Example

 

ADC R[3], R[5],R[6]   

15 14 13 12 11

10 9 8

7 6

5 4 3

2 1 0

10111

011

--

101

110

Note
Arithmetic and Logical Commands always affect the Status Bits Carry and Zero.