These 14 instructions are used in the dimmer / controller program.
register =name
or location
bit =name or location(0-7)
destination =W or F for result of operation
literal =0-255
Instruction | ||
bcf | register, bit | clear bit in register |
bsf | register, bit | set bit in register |
btfsc | register, bit | test bit, skip if clear |
btfss | register, bit | test bit, skip if set |
clrf | register | clear register |
decfsz | register, destination | decrement register, skip if zero |
subwf | register, destination | subtract value in W from register |
movlw | literal | move literal to W |
movwf | register | move value in W to register |
call | label | call subroutine |
return | return from subroutine | |
goto | label | jump to program location |
sleep | put processor in low power mode | |
nop | no operation |
Refer to Microchip data sheets for further details www.microchip.com