EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

PIC pseudo instructions to 18Fxx

Started by PigPOg May 23, 2007
Hi

I'm migrating code from a PIC 16ce625 to an 18f252. All going OK but I
often use mnemonics such as SKPNDC, SETDC etc. Is there an equivalent
for 16 bit devices? I've searched the Microchip website with no luck.
Looks like I'll have to do it the 'long' way unless someone here can
advise otherwise.

Thanks,
Simon
On Wed, 23 May 2007 08:34:41 +0100, the renowned PigPOg
<simon@capella.co.uk> wrote:

>Hi > >I'm migrating code from a PIC 16ce625 to an 18f252. All going OK but I >often use mnemonics such as SKPNDC, SETDC etc. Is there an equivalent >for 16 bit devices? I've searched the Microchip website with no luck. >Looks like I'll have to do it the 'long' way unless someone here can >advise otherwise. > >Thanks, >Simon
They've been discouraging the use of them, even on the 12/14 bit devices, for some time. You can always write some macros if you would like. Personally, I don't like to see too many macros that expand into multiple instructions in assembler code. It makes it (even more) difficult to read in the future. Best regards, Spehro Pefhany -- "it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com
Search for Psuedo-Parallax Macros on microchip site.

"PigPOg" <simon@capella.co.uk> wrote in message 
news:dcr753tqpqrkk458u71mjrsg2nfpplvigi@4ax.com...
> Hi > > I'm migrating code from a PIC 16ce625 to an 18f252. All going OK but I > often use mnemonics such as SKPNDC, SETDC etc. Is there an equivalent > for 16 bit devices? I've searched the Microchip website with no luck. > Looks like I'll have to do it the 'long' way unless someone here can > advise otherwise. > > Thanks, > Simon
Mori/Spehro

Thanks for the replies.

Simon
On 23 May, 08:34, PigPOg <s...@capella.co.uk> wrote:
> Hi > > I'm migrating code from a PIC 16ce625 to an 18f252. All going OK but I > often use mnemonics such as SKPNDC, SETDC etc. Is there an equivalent > for 16 bit devices? I've searched the Microchip website with no luck. > Looks like I'll have to do it the 'long' way unless someone here can > advise otherwise. > > Thanks, > Simon
What about using macros ?

The 2024 Embedded Online Conference