Bit Oriented Operations:
BCF:
Santax: BCF f,b
f => address of file register
b => Bit number which is to be clear
Function: Use to clear bit of file register.
BSF:
Santax: BCF f,b
f => address of file register
b => Bit number which is to be clear
Function: Use to clear bit of file register.
Santax: BSF f,b
f => address of file register
b => Bit number which is to be set
Function: Use to set bit of file register.
Santax: BSF f,b
f => address of file register
b => Bit number which is to be set
Function: Use to set bit of file register.
BTFSC:
Santax: BTFSC f,b
f => address of file register
b => Bit number which is to be test
Function: Use to test bit of file register and skip next instruction if bit is clear.
Santax: BTFSC f,b
f => address of file register
b => Bit number which is to be test
Function: Use to test bit of file register and skip next instruction if bit is clear.
BTFSS:
Santax: BTFSS f,b
f => address of file register
b => Bit number which is to be test
Function: Use to test bit of file register and skip next instruction if bit is set.
Santax: BTFSS f,b
f => address of file register
b => Bit number which is to be test
Function: Use to test bit of file register and skip next instruction if bit is set.
Literal and Control Operations:
ADDLW:
Santax: ADDLW k
k => Literal Value
Function: Use to add literal value and data in working register.Result will store in WREG.
Santax: ADDLW k
k => Literal Value
Function: Use to add literal value and data in working register.Result will store in WREG.
SUBLW:
Santax: SUBLW k
k => Literal Value
Function: Use to subtract value in working register from literal value.Result will store in WREG.
Santax: SUBLW k
k => Literal Value
Function: Use to subtract value in working register from literal value.Result will store in WREG.
ANDLW:
Santax: ANDLW k
k => Literal Value
Function: Use to Perform AND operation on literal value and data in working register. commonly use for masking.Result will store in WREG
Santax: ANDLW k
k => Literal Value
Function: Use to Perform AND operation on literal value and data in working register. commonly use for masking.Result will store in WREG
IORLW:
Santax: IORLW k
k => Literal Value
Function: Use to Perform OR operation on literal value and data in working register. commonly use for masking.Result will store in WREG
Santax: IORLW k
k => Literal Value
Function: Use to Perform OR operation on literal value and data in working register. commonly use for masking.Result will store in WREG
XORLW:
Santax: XORLW k
k => Literal Value
Function: Use to Perform XOR operation on literal value and data in working register. commonly use for masking.Result will store in WREG
Santax: XORLW k
k => Literal Value
Function: Use to Perform XOR operation on literal value and data in working register. commonly use for masking.Result will store in WREG
MOVLW:
Santax: MOVLW k
k => Literal Value
Function: Use to move literal value into working register.
Santax: MOVLW k
k => Literal Value
Function: Use to move literal value into working register.
CALL:
Santax: CALL t
t => Tag of subroutine which is to be call.
Function: Use to Call subroutine.
Santax: CALL t
t => Tag of subroutine which is to be call.
Function: Use to Call subroutine.
CLRWDT:
Santax: CLRWDT
Function: Use to clear watchdog timer.
Santax: CLRWDT
Function: Use to clear watchdog timer.
GOTO:
Santax: GOTO t
t => Tag of subroutine.
Santax: GOTO t
t => Tag of subroutine.
Function: Use to go to address/tag.
Function: Use to go to address/tag.
RETFIE:
Santax: RETFIE
Function: Use to return from interrupt service routine.
Santax: RETFIE
Function: Use to return from interrupt service routine.
RETURN:
Santax: RETURN
Function: Use to return from subroutine routine. which is call by CALL command.
Santax: RETURN
Function: Use to return from subroutine routine. which is call by CALL command.
No comments:
Post a Comment