Games Re-compiling

STOS-related stuff in here please

Moderators: simonsunnyboy, Mug UK, Zorro 2, Moderator Team

Post Reply
User avatar
Posts: 4420
Joined: Wed Mar 10, 2004 6:21 pm
Location: sweden

Games Re-compiling

Post by Marcer »


I have just Compiled couple of games with compiler 2.7. and Funny thing is. many of the games seems to run in 1 vbl. or atleast faster than they previous did.
But there is some titles that the Compiler refuses. and im not a STOS hacker, so is there anybody out there who can help me out.

common error I get is : Non declared array in line 60

it runs fine in STOS basic.
the line is:
60 if A<1 then goto SLUT else gosub BANA(A) : inc LF

any ideas?
- Atari ST/FM/E - Mega sTe - Portfolio - Falcon 030 FX 3 in 1 -- Atari 7800/Lynx/Jaguar -
- FTP... Ask for info
- Atari Legend (Games all-a-round)
- Paradize (Chip Music)
- Elite (Atari Softs)
- The Legion (Demos)
- Alive Maggie Team
User avatar
Atari Super Hero
Atari Super Hero
Posts: 906
Joined: Sun Oct 30, 2005 4:43 pm
Location: Scotland

Re: Games Re-compiling

Post by MiggyMog »

It may be worthwhile posting the BAS file(s)? Too many possibilities Otherwise but It may be automatically declaring the array in interpreted mode but not in compiled? Or maybe an extension is broken in the compiled verson?
('< o o o o |''| STM,2xSTFM,2xSTE+HD,C-Lab Falcon MK2+HD,Satandisk,Ultrasatandisk,Ethernat.
Captain Atari
Captain Atari
Posts: 362
Joined: Mon Mar 03, 2008 10:33 pm

Re: Games Re-compiling

Post by mlynn1974 »

STOS 2.6 with Compiler version 2.7 doesn't seem to support forward declarations.
That is: the compiler will throw an error if an array is used but declared in a later line number even if the array is initialised error by using a goto\gosub. I don't know about writing compilers, but this seems like quite an advanced thing to do and if it doesn't work in 2.7 it is unlikely it would work in previous versions.

When I used STOS a lot I didn't know what forward declarations were.
Billy Allan discovered a few problems with the compiler when he was writing The Missing Link, but I don't think that was one of them.
Still got, still working: Atari 4Mb STe, 520STFM, 2.5Mb STF.
Hardware: Cumana CSA 354, Ultimate Ripper, Blitz Turbo, Synchro Express II (US and UK Versions).
Post Reply

Return to “STOS”