Searching \ for 'MPASM Pseudo Ops' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/language/index.htm?key=asm
Search entire site for: 'MPASM Pseudo Ops'.

Truncated match.
PICList Thread
'MPASM Pseudo Ops'
1997\02\06@113543 by John Piccirillo

flavicon
face
  Where does one get a list, and definition, of MPASM pseudo ops.  Did I miss
it in the MPASM manual?

John-

1997\02\06@190334 by Martin J. Maney

flavicon
face
On Thu, 6 Feb 1997, John Piccirillo wrote:

>    Where does one get a list, and definition, of MPASM pseudo ops.  Did I miss
>  it in the MPASM manual?

They used to hide in an appendix at the back of the printed manual.  As of
about a year ago they were NOT in any electronic document, I believe;
certainly not in the MPASM manual I downloaded and printed about that
time.

1997\02\06@193415 by Andrew Warren

face
flavicon
face
John Piccirillo <spam_OUTPICLISTTakeThisOuTspamMITVMA.MIT.EDU> wrote:

> Where does one get a list, and definition, of MPASM pseudo ops?

   Right here, John.

> Did I miss it in the MPASM manual?

   Maybe.  The following table is copied directly from the
   "USRGUIDE.TXT" file that was included with old versions of
   MPASM:

          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

   Hope that helps...

   -Andy

   P.S.  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.

=== Andrew Warren - .....fastfwdKILLspamspam@spam@ix.netcom.com                 ===
=== Fast Forward Engineering - Vista, California          ===
===                                                       ===
=== Did the information in this post help you?  Consider  ===
=== contributing to the PICLIST Fund.  Details are at:    ===
=== http://www.geocities.com/SiliconValley/2499/fund.html ===

1997\02\06@201351 by dporter

flavicon
face
John Piccirillo wrote:
>
>    Where does one get a list, and definition, of MPASM pseudo ops.  Did I miss
>  it in the MPASM manual?
>
> John-

Try the MPASM help screens for the codes of the chip de jour.  Many
thanks to Andy Warren for pointing out the same thing to me.
David Porter
dporterspamKILLspamvoicenet.com

1997\02\07@065118 by mike

flavicon
picon face
In message  <.....199702061635.KAA19988KILLspamspam.....mdsc1.tbe.com> EraseMEPICLISTspam_OUTspamTakeThisOuTMITVMA.MIT.EDU writes:
>    Where does one get a list, and definition, of MPASM pseudo ops.  Did I miss
>  it in the MPASM manual?
>

John

Yes, its at the back of the manual amoungst the tables of standard
op-codes.

Regards,



Mike Watson

1997\02\07@065120 by mike

flavicon
picon face
In message  <Pine.BSF.3.95.970206175902.856B-100000spamspam_OUTVenus.mcs.net>> @spam@PICLISTKILLspamspamMITVMA.MIT.EDU writes:
> On Thu, 6 Feb 1997, John Piccirillo wrote:
>
> >    Where does one get a list, and definition, of MPASM pseudo ops.  Did I
miss
> >  it in the MPASM manual?
>
> They used to hide in an appendix at the back of the printed manual.  As of
> about a year ago they were NOT in any electronic document, I believe;
> certainly not in the MPASM manual I downloaded and printed about that
> time.
>

I downloaded the manual last week and they were in the back.

Regards,


Mike Watson

1997\02\07@112736 by John Piccirillo

flavicon
face
>>Where does one get a list, and definition, of MPASM pseudo ops.  Did I miss
>>it in the MPASM manual?

Andy Warren wrote:
>Maybe.  The following table is copied directly from the
>    "USRGUIDE.TXT" file that was included with old versions of
>    MPASM:

 SNIP the table...

      I looked through the MPASM Manual Appendices but apparently it's not in
the newer versions.

>    Hope that helps...

   It does; I wanted it to interpret the code of others that use the mnemonics.
 Thanks.

John-


'MPASM Pseudo Ops'
1997\03\27@134220 by Andrew Warren
face
flavicon
face
A few people have recently asked about MPASM pseudo-ops in
private e-mail, so I'm reposting the list.

The following pseudo-ops are understood by MPASM directly; no
include file, etc., is needed in order to use them.

          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.

-Andy

=== Andrew Warren - KILLspamfastfwdKILLspamspamix.netcom.com
=== Fast Forward Engineering - Vista, California
===
=== Custodian of the PICLIST Fund -- For more info, see:
=== www.geocities.com/SiliconValley/2499/fund.html

1997\03\27@192443 by Jim Main

flavicon
picon face
In article <RemoveME199703271840.MAA01554TakeThisOuTspamdfw-ix6.ix.netcom.com>, Andrew Warren
<spamBeGonefastfwdspamBeGonespamIX.NETCOM.COM> writes
>A few people have recently asked about MPASM pseudo-ops in
>private e-mail, so I'm reposting the list.
>
>The following pseudo-ops are understood by MPASM directly; no
>include file, etc., is needed in order to use them.
>
>           PIC16CXX SPECIAL INSTRUCTION MNEMONICS
>
>     Name                Mnemonic       Equivalent       Status
>                                       Operation(s)
>Clear Carry                CLRC        BCF      3,0        -

etc. ......

what I'd like to know - is why isn't any of this documented in the MPASM
documentation (all 90 odd pages of it!)

Jim
--
Jim Main
TakeThisOuTjimEraseMEspamspam_OUTewcomm.demon.co.uk
Visit Eastwood Communications at http://www.ewcomm.demon.co.uk
Broadcast Electronics & Custom Design

1997\03\27@193231 by Andrew Warren

face
flavicon
face
Jim Main <RemoveMEPICLISTspamTakeThisOuTMITVMA.MIT.EDU> wrote:

> what I'd like to know - is why isn't any of this [list of MPASM
> pseudo-ops] documented in the MPASM documentation (all 90 odd pages
> of it!)

Jim:

Some versions of the manual (and USRGUIDE.TXT file) included it; some
didn't.  The next MPASM manual will probably include it.

The pseudo-ops themselves are understood by all versions of MPASM.

-Andy

=== Andrew Warren - fastfwdEraseMEspam.....ix.netcom.com
=== Fast Forward Engineering, Vista, California
=== http://www.geocities.com/SiliconValley/2499

1997\03\27@204932 by sdattalo

face
flavicon
face
Jim Main wrote:
>
> >           PIC16CXX SPECIAL INSTRUCTION MNEMONICS
> >
> >     Name                Mnemonic       Equivalent       Status
> >                                       Operation(s)
> >Clear Carry                CLRC        BCF      3,0        -
>
> etc. ......
>
> what I'd like to know - is why isn't any of this documented in the MPASM
> documentation (all 90 odd pages of it!)
>

It's documented in MPLAB. Look under:

   Help
     |
     --> MPASM Help
             |
             --> PIC16CXX Instruction Set (or in which ever Instruction
                                           Set you're interested.)

In addition to the "Standard Mnemonics", the "Special Mnemonics" are
also documented.

Scott

More... (looser matching)
- Last day of these posts
- In 1997 , 1998 only
- Today
- New search...