Individual Instruction Descriptions
4-122
4.14.31 MOVB Move Byte From Source to Destination
Syntax
[label] name dest, src
Clock,
clk
Word,
w
With RPT,
clk
Class
MOVB A
n
, {
adrs
} Table 4–46 Table 4–46 1b
MOVB {
adrs
}, A
n
Table 4–46 Table 4–46 1b
MOVB A
n
,
imm8
1 1 N/R 2a
MOVB MR,
imm8
1 1 N/R 2a
MOVB R
x
,
imm8
1 1 N/R 2b
Execution
dest
⇐
src
PC ⇐ PC +
w
Flags Affected
dest
is A
n
: OF, SF, ZF, CF are set accordingly
dest
is R
x
: RCF, RZF are set accordingly
dest
is {
adrs
}: XSF, XZF are set accordingly
src
is {
adrs
} TAG bit is set accordingly
Opcode
Instructions 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
MOVB A
n
, {
adrs
}
0 1 0 0 1 1 0 A
n adrs
x
dma16
(for direct) or
offset16
(long relative) [see section 4.13]
MOVB {
adrs
}, A
n
0 1 0 1 0 0 0 A
n adrs
x
dma16
(for direct) or
offset16
(long relative) [see section 4.13]
MOVB A
n
,
imm8
1 0 1 0 0 0 1 A
n imm8
MOVB MR,
imm8
1 0 1 0 1 1 1 A
n imm8
MOVB R
x
,
imm8
1 0 1 1 1 0
k4 k3 k2 k7 k6 k5
R
x k1 k0
Description Copy value of unsigned
src
byte to
dest
byte.
Syntax Description
MOVB A
n
, {
adrs
} Move data memory byte to A
n
†
MOVB {
adrs
}, A
n
Move A
n
byte to data memory
MOVB A
n
,
imm8
Move immediate byte to A
n
†
MOVB MR,
imm8
Move immediate byte to multiply register (MR)
‡
MOVB R
x
,
imm8
Move immediate byte to R
x
†
Zeros loaded to upper 8 bits of A
n
.
‡
Status flags are not modified
See Also MOVU, MOV, MOVT, MOVBS, MOVS
Example 4.14.29.1 MOVB A0, *R2
Copy data memory byte pointed by R2 to accumulator A0.