Searching \ for '[PIC]:a newbie mpasm question (what is skpz/skpnz)' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/begin.htm?key=asm
Search entire site for: 'a newbie mpasm question (what is skpz/skpnz)'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]:a newbie mpasm question (what is skpz/skpnz)'
2001\05\09@104354 by sam woolf

flavicon
picon face
skpz and snpnz are not listed as part of the instruction set of the 16f84 in
the book I've been learning from (Easy Pic'n, D. Benson)
What are they/do they do?
Sam.


{Original Message removed}

2001\05\09@160331 by Dwayne Reid

flavicon
face
At 03:38 PM 5/9/01 +0100, sam woolf wrote:
>skpz and snpnz are not listed as part of the instruction set of the 16f84 in
>the book I've been learning from (Easy Pic'n, D. Benson)
>What are they/do they do?
>Sam.

They are described in the MPASM manual.  They are pseudo-ops that are
translated automatically by MPASM into the proper mnemonics.

They are used when it is desired to make the code easier to read and
understand.  The one that I use all the time are:

skpc, skpnc   skip if Carry set / not set
skpz, skpnz   skip if Zero / not Zero
skpdc, skpndc  skip if Digit Carry set / not set

setc, setz, setdc  set Z bit / C bit / DC bit
clrc, clrz, clrdc  clear Z / C / DC

Note that they work with MPASM but may or may not work with other assemblers.

dwayne



Dwayne Reid   <spam_OUTdwaynerTakeThisOuTspamplanet.eon.net>
Trinity Electronics Systems Ltd    Edmonton, AB, CANADA
(780) 489-3199 voice          (780) 487-6397 fax

Celebrating 17 years of Engineering Innovation (1984 - 2001)

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Do NOT send unsolicited commercial email to this email address.
This message neither grants consent to receive unsolicited
commercial email nor is intended to solicit commercial email.

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


2001\05\09@165510 by michael brown

flavicon
face
Michael Brown
Instant Net Solutions
http://www.KillerPCs.net

----- Original Message -----
From: "sam woolf" <.....samwKILLspamspam@spam@COGS.SUSX.AC.UK>
To: <PICLISTspamKILLspamMITVMA.MIT.EDU>
Sent: Wednesday, May 09, 2001 9:38 AM
Subject: Re: [PIC]:a newbie mpasm question (what is skpz/skpnz)


> skpz and snpnz are not listed as part of the instruction set of the 16f84
in
> the book I've been learning from (Easy Pic'n, D. Benson)
> What are they/do they do?

I believe they are built in macro's to the assembler.
skpz = btfss    STATUS, Z
skpnz = btfsc    STATUS, Z

{Quote hidden}

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


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