STOS gottacha's

STOS programming section.

Moderator: troed

Post Reply
User avatar
Site Admin
Site Admin
Posts: 9255
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK

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


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


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 All my hardware guides - mods - games - STOS - All my hardware mods for sale - Please help support by making a purchase.

Post Reply

Return to “STOS”