Datasheet

PIC12C5XX
DS40139E-page 54 1999 Microchip Technology Inc.
MOVF Move f
Syntax: [
label
] MOVF f,d
Operands: 0 f 31
d [0,1]
Operation: (f) (dest)
Status Affected: Z
Encoding:
0010 00df ffff
Description:
The contents of register ’f’ is moved to
destination ’d’. If ’d’ is 0, destination is
the W register. If ’d’ is 1, the destination
is file register ’f’.d’ is 1 is useful to test
a file register since status flag Z is
affected.
Words: 1
Cycles: 1
Example:
MOVF FSR, 0
After Instruction
W = value in FSR register
MOVLW Move Literal to W
Syntax: [
label
] MOVLW k
Operands: 0 k 255
Operation: k (W)
Status Affected: None
Encoding:
1100 kkkk kkkk
Description:
The eight bit literal ’k’ is loaded into the
W register. The don’t cares will assem-
ble as 0s.
Words: 1
Cycles: 1
Example:
MOVLW 0x5A
After Instruction
W= 0x5A
MOVWF Move W to f
Syntax: [
label
] MOVWF f
Operands: 0 f 31
Operation: (W) (f)
Status Affected: None
Encoding:
0000 001f ffff
Description:
Move data from the W register to regis-
ter 'f'
.
Words: 1
Cycles: 1
Example:
MOVWF TEMP_REG
Before Instruction
TEMP_REG = 0xFF
W = 0x4F
After Instruction
TEMP_REG = 0x4F
W = 0x4F
NOP No Operation
Syntax: [
label
] NOP
Operands: None
Operation: No operation
Status Affected: None
Encoding:
0000 0000 0000
Description: No operation.
Words: 1
Cycles: 1
Example:
NOP