menu_top_normal
NeoLoch Home Page
Home Inquisitor Tester Learning Lab Consulting Shipping Policy Contact us Support ----------------------
News
Coming soon! 9060 Blade.
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.










All contents of this website are copyrighted 2010-2018 NeoLoch