Specifications

mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 9: Instruction Set
EXAMPLE 2:
....
[label] MOVF INDF,f
Before instruction execution: W=0x17
FSR=0xC2, register at address 0xC2 contains
the value 0x00
After instruction: W=0x17
FSR=0xC2, register at address 0xC2 contains
the value 0x00,
Z = 1
MOVLW - Move literal to W
Syntax: [label] MOVLW k
Description: 8-bit literal k is moved to register W.
Operation: k -> (W)
Operand: 0 k 255
Status affected: -
Number of cycles: 1
EXAMPLE 1:
....
[label] MOVLW 0x5A
After instruction: W=0x5A
EXAMPLE 2:
Const equ 0x40
http://www.mikroe.com/en/books/picmcubook/ch9/ (22 of 35)5/3/2009 11:35:12 AM