FlexGui -- S9 duplicate definition
greybeard1
Posts: 6
in Propeller 2
I have a legacy P1 spin program that works well. I tried to compile it with flexgui using P1 defaults. It generates a .pasm file also gives the following 'error: Redefining symbol sp'. I assume is stack pointer. Anyway. In looking through the generated PASM file I find on one label 'sp'. There are many mov and sub and add commands using 'sp', but only one line with the label 'sp'.
Any suggestions.
Any suggestions.
Comments
"error: fit 496 failed: pc is" but I think that is because the code to generated code is to large (original P1 SPIN code is rather large) or one of the cog codes is won't fit into a cog. I'll have to experiment to find out which.
This is my first attempt to use FASTSPIN and FLEXGUI so not surprised to have problems.
Thanks for the replies. I'll keep you posted.
If not use the fit $1ef command in your code to find out where it overflows, or break it into LUT with a jmp then org $200 and put some code in LUT. Variable registers cannot be in LUT although tables go there nicely.
Is there a trick to automatically load the LUT RAM with COGINIT or do we have to load it manually with WRLUT?
There's no way to load LUT RAM with COGINIT. You can use WRLUT, or better you can do a SETQ2+RDLONG, which will let you read N longs directly into LUT.
And just to clarify: LUT is a P2 only feature. I'm not sure if the original poster is using P1 or P2.