Ham Radio
Ham Radio, Electronics, Software and more...

Home » Electronics » PIC Microcontrollers » PIC Assembly Language Commands
PIC Assembly Language Commands [message #59] Sun, 21 May 2006 23:55
kc2nda is currently offline  kc2nda
Messages: 42
Registered: December 2004
Location: New Paltz
Member

PIC Assembly Language Commands


Mnemonic

Arguments

Name

Notes

ADDLW

 

Add Literal to W

 

ADDWF

 

Add W to file

 

ANDLW

 

And Literal with W

 

ANDWF

 

And W with file

 

BCF

 

Clear a bit from file

 

BSF

 

Set a bit in file

 

BTFSC

 

Test bit in file, skip next if clear (0)

 

BTFSS

 

Test bit in file, skip next if set (1)

 

CALL

 

Call subroutine

 

CLRF

 

Set file to 0

 

CLRW

 

Set W to 0

 

CLRWDT

 

Clear watchdog timer

 

COMF

 

Complement (Invert) file

 

DECF

 

Decrement file

 

DECFSZ

 

Decrement file, skip next if zero

 

GOTO

 

Goto line number

 

INCF

 

Increment file

 

INCFSZ

 

Increment file, skip next if zero

 

IORLW

 

(Inclusive) OR literal with W

 

IORWF

 

(Inclusive) OR W with file

 

MOVLW

 

Move literal to W

 

MOVF

 

Move file to W

 

MOVWF

 

Move W to file

 

NOP

-

No operation

Do nothing

OPTION

-

Copies W into Option register

To be discontinued

RETFIE

-

Return from handling interrupt

 

RETLW

K

Return with a literal in W

 

RETURN

-

Return from subroutine

 

RLF

F

Rotate a file left

 

RRF

F

Rotate a file right

 

SLEEP

-

Enter 'sleep' mode

 

SUBLW

K

Subtract literal from W

 

SUBWF

F

Subtract W from file

 

SWAPF

F,F

Swap 2 files

 

TRIS

 

Configure ports as I/O

To be discontinued

XORLW

 

(Exclusive) OR literal with W

 

XORWF

 

(Exclusive) OR W with file

 

[Updated on: Mon, 22 May 2006 00:05] by Moderator

Report message to a moderator

Previous Topic: Enhanced Willem Programmer
Next Topic: PIC Assembler Directives
Goto Forum:
  


Current Time: Wed Nov 22 19:12:46 EST 2017

Total time taken to generate the page: 0.03546 seconds