please dont rip this site

List of pseudo mnemomics understood by MPASM

The latest MPASM/MPLAB User's Guides contain a
table showing this and all other pseudo-ops understood by MPASM;
here's the list:

           PIC16CXX SPECIAL INSTRUCTION MNEMONICS

     Name                Mnemonic       Equivalent       Status
                                       Operation(s)
Clear Carry                CLRC        BCF      3,0        -
Clear Digit Carry          CLRDC       BCF      3,1        -
Set Digit Carry            SETDC       BSF      3,1        -
Clear Zero                 CLRZ        BCF      3,2        -
Set Zero                   SETZ        BSF      3,2        -
Skip on Carry              SKPC        BTFSS    3,0        -
Skip on No Carry           SKPNC       BTFSC    3,0        -
Skip on Digit Carry        SKPDC       BTFSS    3,1        -
Skip on No Digit Carry     SKPNDC      BTFSC    3,1        -
Skip on Zero               SKPZ        BTFSS    3,2        -
Skip on Non Zero           SKPNZ       BTFSC    3,2        -
Test File                  TSTF f      MOVF     f,1        Z
Move File to W             MOVFW f     MOVF     f,0        Z
Negate File                NEGF f,d    COMF     f,1
                                       INCF     f,d        Z
Add Carry to File          ADDCF f,d   BTFSC    3,0
                                       INCF     f,d        Z
Subtract Carry from File   SUBCF f,d   BTFSC    3,0
                                       DECF     f,d        Z
Add Digit Carry to File    ADDDCF f,d  BTFSC    3,1
                                       INCF     f,d        Z
Subtract Digit             SUBDCF f,d  BTFSC    3,1
Carry from File                        DECF     f,d        Z
Branch                     B k         GOTO     k          -
Branch on Carry            BC k        BTFSC    3,0
                                       GOTO     k          -
Branch on No Carry         BNC k       BTFSS    3,0
                                       GOTO     k          -
Branch on Digit Carry      BDC k       BTFSC    3,1
                                       GOTO     k          -
Branch on No Digit Carry   BNDC k      BTFSS    3,1
                                       GOTO     k          -
Branch on Zero             BZ k        BTFSC    3,2
                                       GOTO     k          -
Branch on Non Zero         BNZ k       BTFSS    3,2
                                       GOTO     k          -
Call across page boundary  LCALL k     BCF 3,5 or BSF 3,5
                                       BCF 3,6 or BSF 3,6
                                       CALL     k

By the way, don't bother using the "LCALL" pseudo-op... Since it
doesn't restore the code-page bits after the CALL, it's sorta
useless.  Also, be careful with the pseudo-ops that assemble to two
instructions; constructs like the following, for instance, will cause
you great pain and suffering:

    ; DON'T DO THIS!

    BTFSS   FLAGS,SWITCH    ;If the switch is pressed, skip ahead.
    NEGF    REG             ;Otherwise, negate the REG register.

Questions:

Comments:

Andrew Russell Morris Says:

Thanks a lot! A consultant my former employer hired used BZ and BNZ extensively. I have also been using them as well, but I didn't know where they came from and I wanted to know if there were any more of them. Also, I needed to be sure that they would reliably work. This posting helped me. Thanks a lot!
+
file: /techref/microchip/mpasmpseudo.htm, 4KB, , updated: 2005/8/9 12:38, local time: 2009/11/7 16:21, owner: JMN-EFP-786,
TOP NEW HELP FIND: 
38.107.191.84:LOG IN
©2009 PLEASE DON'T RIP! DO: LINK / DIGG! / MAKE!

 ©2009 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it!
<A HREF="http://www.piclist.com/techref/microchip/mpasmpseudo.htm"> List of pseudo mnemomics understood by MPASM</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 
Feel the NEED for SPEED?
Ubicom SX18 thru SX52, PIC 16c5X compatibile, 50 to 75 MIPS  microcontrollers!
 

Robotics nuts!

Check out http://www.verinet.com/~dlc/ email: dlc@verinet.com... This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.
The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .