Individual Instruction Descriptions
4-77
Assembly Language Instructions
4.14.2 ADDB ADD BYTE
Syntax
[
label
]
name dest, src
Clock,
clk
Words,
w
With RPT,
clk
Class
ADDB A
n
,
imm8
1 1 N/R 2a
ADDB R
x
,
imm8
1 1 N/R 4b
Execution
dest
⇐
dest
+
src
PC ⇐ PC + 1
Flags Affected
dest
is A
n
:OF, SF, ZF, CF are set accordingly
dest
is R
x
: RCF, RZF are set accordingly
Opcode
Instructions 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
ADDB A
n imm5
1 0 1 0 0 0 0 A
n imm8
ADD R
x
,
imm8
1 0 1 1 0 0
k4 k3 k2 k7 k6 k5
R
x k1 k0
See Also ADD, ADDS, SUB, SUBB, SUBS
Description Add immediate value of unsigned
src
byte to value stored in
dest
register and
store result in the same
dest
register.
Example 4.14.2.1 ADDB A2, 0x45
Add immediate 0x45 to A2.
Example 4.14.2.2 ADDB R5, 0xf2
Add immediate 0xf2 to R5.