Pelles C forum

Pelles C => Bug reports => Topic started by: Vortex on April 11, 2025, 10:19:05 PM

Title: Poasm hanging while processing a macro
Post by: Vortex on April 11, 2025, 10:19:05 PM
Hello,

I am trying to emulate the FOR-NEXT construct of BASIC with macros. The first example ForLoop1.asm is built without any issues.

The second example ForLoop2.asm is reporting :

\PellesC\bin\poasm /AIA32 ForLoop2.asm
ForLoop.inc(23): warning: Reserved word 'jle' used as symbol name.

At this point Poasm is freezing and does not respond. Attached is the example code tested with Poasm Version 13.00.5

The ContFor macro instructs the FOR loop to jump the next iteration.

The BreakFor macro terminates the current loop.


Title: Re: Poasm hanging while processing a macro
Post by: Vortex on April 12, 2025, 12:12:00 PM
Hello,

Here is the simplified example demonstrating the issue.

ForLoop.inc(30): warning: Reserved word 'jle' used as symbol name.
ForLoop.inc(51): error: Redefinition of symbol 'Next1'.
Title: Re: Poasm hanging while processing a macro
Post by: Pelle on April 13, 2025, 10:02:30 PM
Try this...
www.smorgasbordet.com/pellesc/1300/poasm_13_00_11.zip
Title: Re: Poasm hanging while processing a macro
Post by: Vortex on April 14, 2025, 01:30:57 PM
Hi Pelle,

Many thanks, great job.The new release V13.00.11 solved the issues.