NeoLoch Home Page
Home

Products
Inquisitor IC Tester
4-Dig 7-Seg Display Module

Learning Lab
Assembly Cmds

Consulting
Shipping Policy

About us

Contact us

Support
Knowledgebase

Secured by PayPal
Official PayPal Seal
MOVF Command:
Syntax:
Status Flags Effected:
MOVF
MOVF k
Z

The MOVF command copies the contents of the register specified by k to the working register.


Example 1: Different examples of the MOVF command.
MOVF      A_REGISTER
MOVF      0x20
Copy the contenst of the register labeled A_REGISTER to w.
Copy the contents of the register at address 0x20 to w.


MOVWF Command:
Syntax:
Status Flags Effected:
MOVWF
MOVWF f
NONE

Copy the contents contained in the working register to the register specified by f.

Code Example 3: Some examples of the MOVWF command.
MOVWF   A_REGISTER
MOVWF   0x20
MOVWF   PORTA
Copy the working register contents to A_REGISTER.
Copy the working register contents to the register at address 0x20.
Copy the working register contents to PORTA.


MOVLW Command:
Syntax:
Status Flags Effected:
MOVLW
MOVLW f
NONE

Copy the contents contained in the literal k to the working register.

Code Example 3: Some examples of the MOVLW command.
MOVLW   A_VALUE
MOVLW   b'10101010'
MOVLW   d'23'
MOVLW    0x23
MOVLW    h'23'
MOVLW    "A"
Copy the value defined as A_VALUE to the working register.
Copy the binary value into the working register.
Copy the decimal value (converts to hex) 23 into w.
Copy the hex value 23 into the working register.
Copy the hex value 23 into the working register.
Copy the ASCII value for the letter "A" into the working register.

Home Consulting Products About us Contact us
All contents of this website are copyrighted 2010-2011 NeoLoch, LLC