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
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
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
>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