Advance Information
UM-TM57PE10_E
8-Bit Microcontroller
40
tenx technology inc.
Preliminary
Rev 1.4, 2012/01/19
MOVFW
Move "f" to W
Syntax
MOVFW f
Operands
f : 00h ~ 7Fh
Operation
(W) ← (f)
Status Affected
-
OP-Code
00 1000 0fff ffff
Description
The contents of register 'f' are moved to W register.
Cycle
1
Example
MOVFW FSR
B : FSR = 0xC2, W = ?
A : FSR = 0xC2, W = 0xC2
MOVLW
Move Literal to W
Syntax
MOVLW k
Operands
k : 00h ~ FFh
Operation
(W) ← k
Status Affected
-
OP-Code
01 1001 kkkk kkkk
Description
The eight-bit literal 'k' is loaded into W register. The don’t cares will
assemble as 0’s.
Cycle
1
Example
MOVLW 0x5A
B : W = ?
A : W = 0x5A
MOVWF
Move W to "f"
Syntax
MOVWF f
Operands
f : 00h ~ 7Fh
Operation
(f) ← (W)
Status Affected
-
OP-Code
00 0000 1fff ffff
Description
Move data from W register to register 'f'.
Cycle
1
Example
MOVWF REG1
B : REG1 = 0xFF, W = 0x4F
A : REG1 = 0x4F, W = 0x4F
MOVWR
Move W to "r"
Syntax
MOVWR r
Operands
r : 00h ~ 3Fh
Operation
(r
) ← (W)
Status Affected
-
OP-Code
00 0000 00rr rrrr
Description
Move data from W register to register 'r'.
Cycle
1
Example
MOVWR REG1
B : REG1 = 0xFF, W = 0x4F
A : REG1 = 0x4F, W = 0x4F