English
Language : 

PM0044 Datasheet, PDF (119/162 Pages) STMicroelectronics – STM8 CPU programming manual
PM0044
STM8 instruction set
MOV
Move
MOV
Syntax
MOV dst,src
e.g. MOV $80,#$AA
Operation
dst<= src
Description
Moves a byte of data from a source address to a destination address. Data
is examined as it is moved. The accumulator is not affected.
There are 3 addressing modes for the MOV instruction:
● An immediate byte to a direct memory location
● A direct memory location to another direct memory location (from $00
to $FF)
● A direct memory location to another direct memory location (from
$0000 to $FFFF)
Instruction overview
mnem
dst
MOV
MOV
Mem
Mem
Detailed description
src
Imm
Mem
Affected condition flags
V I1 H I0 N Z C
-
-
-
-
-
-
-
-
-
-
-
-
-
-
dst
src
Asm
longmem #byte MOV $8000, #$AA
shortmem shortmem MOV $80,$10
longmem longmem
MOV
$8000,$1000
cy lgth
14
13
15
Op-code(s)
ST7
35 XX MS LS
45 XX2 XX1
55 MS2 LS2 MS1 LS1
See also: LD, EXG
Doc ID 13590 Rev 3
119/162