STOS gottacha's

STOS programming section.
Post Reply
User avatar
exxos
Site Admin
Site Admin
Posts: 4528
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
Contact:

STOS gottacha's

Post by exxos » Thu Aug 30, 2018 11:02 am

Just some quick notes of things which have caught me out recently in STOS..

EXAMPLE 1

For Z=0 to A step 2

What STOS actually ends up with is..

For Z=0 to as TEP2

Basically because "as" is a term used in STOS. Of course this isn't uncommon to happen, but as I tend to use "A" as my first variable, then it could catch out others easily as well..



EXAMPLE 2

When using the DRAW commands, in the editor, STOS seems to assume colour 1 as the line colour. BUT, in the compiler it seems to assume colour 0. I had actually missed "INK 1" out of my code, never thought to add it as it used colour 1 anyway, but compiled I just got a blank screen. Adding in "INK 1" and now works compiled.
4MB STFM 1.44 FD- VELOCE+ 020 STE - 4MB STE 32MHz - STFM 16MHz - STM - MEGA ST - Falcon 030 CT60 - Atari 2600 - Atari 7800 - Gigafile - SD Floppy Emulator - PeST - HxC - CosmosEx - Ultrasatan - various clutter

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/last/storenew/ - All my hardware mods for sale - Please help support by making a purchase.

Post Reply