Mikroone - Online Help
ADD R[x], R[y], R[z] - Addition without Carry
Operating Mode
R[x] := R[y] + R[z]
PC := PC + 1
Description
Adds contents of Registers R[y] and R[z] and writes result to Register R[x].
Status Register
Carry-Bit := 1 if result from R[y] + R[z] 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 |
00111 |
Adr(x) |
-- |
Adr(y) |
Adr(z) |
Example
ADD R[3], R[5],R[6]
15 14 13 12 11 |
10 9 8 |
7 6 |
5 4 3 |
2 1 0 |
00111 |
011 |
-- |
101 |
110 |