STOS gottacha's

STOS programming section.

Moderator: troed

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

STOS gottacha's

Post by exxos »

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.
https://www.exxosforum.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxosforum.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.
viewtopic.php?f=17&t=1585 Have you done the Mandatory Fixes ?
Just because a lot of people agree on something, doesn't make it a fact. ~exxos ~
People should find solutions to problems, not find problems with solutions.
Post Reply

Return to “STOS”