|
PIC16F84A_13 Datasheet, PDF (40/90 Pages) Microchip Technology – 18-pin Enhanced FLASH/EEPROM 8-Bit Microcontroller | |||
|
◁ |
PIC16F84A
MOVF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move f
[ label ] MOVF f,d
0 ï£ f ï£ 127
d ï [0,1]
(f) ï® (destination)
Z
The contents of register f are
moved to a destination dependant
upon the status of d. If d = 0, des-
tination is W register. If d = 1, the
destination is file register f itself.
d = 1 is useful to test a file register,
since status flag Z is affected.
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move Literal to W
[ label ] MOVLW k
0 ï£ k ï£ 255
k ï® (W)
None
The eight-bit literal 'k' is loaded
into W register. The donât cares
will assemble as 0âs.
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move W to f
[ label ] MOVWF f
0 ï£ f ï£ 127
(W) ï® (f)
None
Move data from W register to
register 'f'.
NOP
Syntax:
Operands:
Operation:
Status Affected:
Description:
No Operation
[ label ] NOP
None
No operation
None
No operation.
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
Return from Interrupt
[ label ] RETFIE
None
TOS ï® PC,
1 ï® GIE
None
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Return with Literal in W
[ label ] RETLW k
0 ï£ k ï£ 255
k ï® (W);
TOS ï® PC
None
The W register is loaded with the
eight-bit literal 'k'. The program
counter is loaded from the top of
the stack (the return address).
This is a two-cycle instruction.
RETURN
Syntax:
Operands:
Operation:
Status Affected:
Description:
Return from Subroutine
[ label ] RETURN
None
TOS ï® PC
None
Return from subroutine. The stack
is POPed and the top of the stack
(TOS) is loaded into the program
counter. This is a two-cycle
instruction.
DS35007C-page 40
ï£ 2001-2013 Microchip Technology Inc.
|
▷ |