Searching \ for '[PIC]: skpnc and skpc?' 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/devices.htm?key=pic
Search entire site for: 'skpnc and skpc?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]: skpnc and skpc?'
2002\06\06@015848 by Tan Chun Chiek

flavicon
face
Hi,
I have come across SKPNC and SKPC in some 16F84 ASM codes, apparently they look like instructions to me, but a lookup on the datasheet reveals nothing about these 2 instructions. Can anyone help? Thanks

Regards,
Tan Chun Chiek

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\06\06@021528 by Dmitriy A. Kiryashov

picon face
skpnc == btfsc STATUS,C
skpc  == btfss STATUS,C
skpndc btfsc ... ,DC
skpdc btfss ...,DC
skpnz
skpz
etc...

see at MPLAB help file for those built-in definitions.

WBR Dmitry.


Tan Chun Chiek wrote:
>
> Hi,
> I have come across SKPNC and SKPC in some 16F84 ASM codes, apparently they look like instructions to me, but a lookup on the datasheet reveals nothing about these 2 instructions. Can anyone help? Thanks
>
> Regards,
> Tan Chun Chiek

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


2002\06\06@021731 by Lyle Hazelwood

flavicon
face
I can take a good guess as to their meaning.
These are probably macros that define as something like:

SKPNC
Skip if No Carry

SKPC
Skip if Carry

On a 16F87X, these would be

BTFSS    STATUS,C    ;Bit Test F, Skip if Set STATUS, CARRY FLAG

BTFSC    STATUS,C    ;Bit Test F, Skip if Clear STATUS, CARRY FLAG

In both cases, the state of the carry flag decides whether you will skip the
next instruction.

If it compiles successfully, one of the included files must have defined
their meaning.
As my experience with PIC's is limited to the mid-range devices, I could be
completely wrong. This is just a guess.

I have been wrong before, and I'm sure I'll find a chance to be wrong again.
Please search your included files for SKPNC and SKPC to get confirmation
of my guesses.

Breathe Deep,
Lyle

{Original Message removed}

2002\06\06@024515 by Bob Barr

flavicon
face
On Thu, 6 Jun 2002 13:52:57 +0800, Tan Chun Chiek wrote:

>Hi,
>I have come across SKPNC and SKPC in some 16F84 ASM codes, apparently they look like instructions to me,
>but a lookup on the datasheet reveals nothing about these 2 instructions. Can anyone help? Thanks
>

These are assembler pseudo-ops that are listed in the MPASM manual.
See DS33014G, Appendix B, Table B.11 There are quite a number of
others listed there as well.

Regards, Bob

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
[PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads


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