Games Re-compiling

STOS-related stuff in here please

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

User avatar
Marcer
Atarilegend
Atarilegend
Posts: 4140
Joined: Wed Mar 10, 2004 6:21 pm
Location: sweden
Contact:

Games Re-compiling

Postby Marcer » Thu Sep 06, 2018 8:10 am

Hi

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
_/|\_YM-RockerZ_/|\_

User avatar
MiggyMog
Atari Super Hero
Atari Super Hero
Posts: 829
Joined: Sun Oct 30, 2005 4:43 pm
Location: Scotland

Re: Games Re-compiling

Postby MiggyMog » Sun Sep 16, 2018 11:33 am

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.

mlynn1974
Captain Atari
Captain Atari
Posts: 193
Joined: Mon Mar 03, 2008 10:33 pm
Contact:

Re: Games Re-compiling

Postby mlynn1974 » Sun Sep 16, 2018 8:13 pm

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).


Social Media

     

Return to “STOS”

Who is online

Users browsing this forum: No registered users and 0 guests