Searching \ for 'Macros no longer assemble' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/index.htm?key=macros+longer+assemble
Search entire site for: 'Macros no longer assemble'.

Truncated match.
PICList Thread
'Macros no longer assemble'
1996\09\10@235940 by John & Maria Perry

flavicon
face
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[207]: Found label after column 1. (stb16)
Error[122]  : Illegal opcode (tmp)
0002 0008           00061         stb16   tmp
0003 0008           00062         return

...

                   00135 stb16   macro   dst
                   00136         ioff
                   00137         movf    BARGB1, W
                   00138         movwf   dst
                   00139         movf    BARGB0, W
                   00140         movwf   dst+1
                   00141         ion
                   00142         endm
                   00143

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 perry
spam_OUTjperryTakeThisOuTspamnorfolk.infi.net

1996\09\11@022119 by fastfwd

face
flavicon
face
John & Maria Perry <.....PICLISTKILLspamspam@spam@MITVMA.MIT.EDU> wrote:

> Warning[207]: Found label after column 1. (stb16)
> Error[122]  : Illegal opcode (tmp)
> 0002 0008           00061         stb16   tmp
> 0003 0008           00062         return
> ...
>                     00135 stb16   macro   dst
> ....
>
> What is going on?

John:

Move your macro definitions to a point ABOVE the first invocation and
it'll work fine.

-Andy

Andrew Warren - fastfwdspamKILLspamix.netcom.com
Fast Forward Engineering, Vista, California
http://www.geocities.com/SiliconValley/2499

More... (looser matching)
- Last day of these posts
- In 1996 , 1997 only
- Today
- New search...