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
PIC pseudo instructions to 18Fxx
Started by ●May 23, 2007
Reply by ●May 23, 20072007-05-23
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, >SimonThey'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
Reply by ●May 23, 20072007-05-23
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
Reply by ●May 24, 20072007-05-24
Reply by ●June 10, 20072007-06-10
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, > SimonWhat about using macros ?