PIC12C508A-04/EJW MICROCHIP [Microchip Technology], PIC12C508A-04/EJW Datasheet - Page 54

no-image

PIC12C508A-04/EJW

Manufacturer Part Number
PIC12C508A-04/EJW
Description
8-Pin, 8-Bit CMOS Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC12C5XX
MOVF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
MOVLW
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
DS40139E-page 54
After Instruction
After Instruction
W
W
=
=
Move f
[ label ]
0
d
(f)
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.
1
1
MOVF
value in FSR register
Move Literal to W
[ label ]
0
k
The eight bit literal ’k’ is loaded into the
W register. The don’t cares will assem-
ble as 0s.
1
1
MOVLW
0x5A
0010
1100
f
k
[0,1]
(W)
(dest)
31
255
FSR,
0x5A
MOVF f,d
MOVLW k
00df
kkkk
0
ffff
kkkk
MOVWF
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
NOP
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
TEMP_REG
W
TEMP_REG
W
Move W to f
[ label ]
0
(W)
Move data from the W register to regis-
ter 'f'
1
1
MOVWF
No Operation
[ label ]
None
No operation
No operation.
1
1
NOP
0000
0000
f
.
=
=
=
=
31
(f)
1999 Microchip Technology Inc.
TEMP_REG
0xFF
0x4F
0x4F
0x4F
MOVWF
NOP
001f
0000
ffff
0000
f

Related parts for PIC12C508A-04/EJW