Exact match. Not showing close matches.
PICList
Thread
'[pic]: ?pseudo? instructions'
2001\01\08@081515
by
jcsa Laszlo AII III
hi,
i saw some pic programs with instructions like this skpnc, skpnz ...
where can i find some infos about this???
at microchips homepage couldn't find it
thanx,
Kajcsa Laszlo
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2001\01\08@082153
by
Drew Vassallo
You can find descriptions of these special instructions in the documentation
that came with MPLAB. Also, inside MPLAB itself is a pretty decent help
file system. Look under "MPASM Help", "Instruction Sets", "14-bit Core
Instructions", "12-bit/14-bit Special Instructions".
--Andrew
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2001\01\08@093615
by
Olin Lathrop
> i saw some pic programs with instructions like this skpnc, skpnz ...
> where can i find some infos about this???
These are wrapper macros around instructions like BTFSC STATUS, Z. Some of
these are built into the assembler although not documented well. Others may
be from people's private wrapper macros. I've got a whole bunch of such
wrapper macros and lots of other useful macros at
http://www.embedinc.com/pic.
*****************************************************************
Olin Lathrop, embedded systems consultant in Devens Massachusetts
(978) 772-3129, spam_OUTolinTakeThisOuT
embedinc.com, http://www.embedinc.com
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2001\01\08@123817
by
Douglas Wood
Well, since I see Olin touted his macros ;^), I guess I'll the same. I has a
package of macros, call EIS (for Enhanced Instruction Set), designed to
incorporate many features including automatic bank/page switching and
multiple-byte operands.
Unfortunately, I don't have a web site as of yet, so interested parties may
contact me at .....dbwoodKILLspam
@spam@kc.rr.com.
Douglas Wood
Software Engineer
{Original Message removed}
2001\01\08@133347
by
Maris
|
At 03:24 PM 1/8/2001 +0200, you wrote:
>hi,
>
>i saw some pic programs with instructions like this skpnc, skpnz ...
>where can i find some infos about this???
>at microchips homepage couldn't find it
>
>thanx,
> Kajcsa Laszlo
>--
Not sure where I got these or if they're all correct.....
Maris
movfw macro f ; Move Contents of File Reg to W
movf f,0
endm
tstf macro f ; Test Contents of File Register
movf f,1 ; (move file to itself to affect zero flag,
endm ; then test zero flag with skpz or skpnz)
negf macro f,d ; Negate File Register Contents
comf f,1
incf f,d
endm
b macro k ; Branch to Address
goto k
endm
clrc macro ; Clear Carry
bcf 3,0
endm
clrdc macro ; Clear Digit Carry
bcf 3,2
endm
clrz macro ; Clear Zero
bcf 3,2
endm
setc macro ; Set Carry
bsf 3,0
endm
setdc macro ; Set Digit Carry
bsf 3,1
endm
setz macro ; Set Zero flag
bcf 3,2
endm
skpc macro ; Skip on Carry
BTFSS 3,0
endm
skpdc macro ; Skip on Digit Carry
btfss 3,0
endm
skpnc macro ; Skip on No Carry
btfsc 3,0
endm
skpndc macro ; Skip on No Digit Carry
btfsc 3,1
endm
skpnz macro ; Skip on No Zero
btfsc 3,2
endm
skpz macro ; Skip on Zero
btfss 3,2
endm
bc macro k ; Branch on Carry to Address k
btfsc 3,0
goto k
endm
bdc macro k ; Branch on Digit Carry to k
btfsc 3,1
goto k
endm
bnc macro k ; Branch on No Carry to k
btfss 3,0
goto k
endm
bndc macro k ; Branch on No Digit Carry to k
btfss 3,1
goto k
endm
bnz macro k ; Branch on No Zero to Address
btfss 3,2
goto k
endm
bz macro k ; Branch on Zero to Address k
btfsc 3,2
goto k
endm
addcf macro f,d ; Add Carry to File Register
btfsc 3,0
incf f,d
endm
adddcf macro f,d ; Add Digit to File Register
BTFSC 3,1
incf f,d
endm
subcf macro f,d ; Subtract Carry from File Reg
btfsc 3,1
decf f,d
endm
--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics
2001\01\08@135202
by
jamesnewton
More... (looser matching)
- Last day of these posts
- In 2001
, 2002 only
- Today
- New search...