03-16-2010, 09:44 AM
apenao Wrote:Well, I've just tried with optimization -O 2 and got the same result. But with optimization -O 3 it compiles and the result is OK.At first sight, it seems the compiler is getting confused with an ASM data block not being isolated from the main execution code. So I enclosed it between SUB FASTCALL xxx and END SUB, and it worked. Also added a fake call Gentlecillo() to avoid -O3 to remove this sub.
Code:
SUB FASTCALL Gentlecillo
gentlecillo:
ASM
; ASM source file created by SevenuP v1.20
; SevenuP (C) Copyright 2002-2006 by Jaime Tejedor Gomez, aka Metalbrain
...
END SUB
Gentlecillo() ' Fake Call
Code:
SUB FASTCALL eSprite
esprite:
ASM
xp: defb 0
yp: defb 0
gfxdir: defw 0
[...]
END SUB
eSprite() ' Fake Call, never executed