'Macros no longer assemble'
John & Maria Perry
|In mid-August, I downloaded MPLAB 3.09.03. At about the same time, my
Syquest removable drive acquired a bunch of bad sectors (no, I don't think
MPLAB did it). Also, at about the same time, the fixed-point routines that
I had previously downloaded and adapted to my use stopped assembling, and so
did my file of macros.
The fixed-point routines are now working fine, but the macros still do not
assemble. Every definition of a macro shows up in the list file symbol
table as a valid macro, and the cross-reference file shows them as macros.
However, every instantiation in the code comes up with errors. Here is a
sample from my test code (stb16 stores a 16-bit value from BARGB0,1 to tmp).
Warning: Found label after column 1. (stb16)
Error : Illegal opcode (tmp)
0002 0008 00061 stb16 tmp
0003 0008 00062 return
00135 stb16 macro dst
00137 movf BARGB1, W
00138 movwf dst
00139 movf BARGB0, W
00140 movwf dst+1
ioff and ion are macros to turn interrupts off and on. There are no other
errors or warnings. This file assembled and simulated fine before the
update/crash. What is going on?
John & Maria Perry <MITVMA.MIT.EDU> wrote: PICLIST
> Warning: Found label after column 1. (stb16)
> Error : Illegal opcode (tmp)
> 0002 0008 00061 stb16 tmp
> 0003 0008 00062 return
> 00135 stb16 macro dst
> What is going on?
Move your macro definitions to a point ABOVE the first invocation and
it'll work fine.
Andrew Warren - ix.netcom.comfastfwd
Fast Forward Engineering, Vista, California
More... (looser matching)
- Last day of these posts
- In 1996
, 1997 only
- New search...