Earlier quoted context omitted.
On the Commodore 64, it was the only option. It had minimal support for a thing it called a "subroutine", but what it really was was a GOTO that pushed the source on to the stack and could be RETURN'd to that source. In particular, no concept of return value, no concept of parameters; everything's global. Modification of global values prior to the "call" is the argument passing, and modification of global values is t…
The 6502 processor itself also has very poor "stack" support, the hardware-supported stack is limited to 256 bytes at a fixed location. It's one of the things that make it hard to compile a modern language like C for the architecture, so even among compiled languages one would prefer something FORTRAN/BASIC-like.
BASIC Computer Games
121–124 of 124 posts
Re: BASIC Computer Games
#122Also: https://archive.org/details/Whattodoafteryouhitreturn/page/n... With my personal favorite BASIC game: Star Traders
Re: BASIC Computer Games
#123Had great times with this one and the "More Basic Computer Games" book. My favorites were the Eliza clone, and ICBM, where you are trying to intercept an incoming ICBM with a anti-ballistic missle. My first use of trig functions, which really helped solidify the concepts to me. I also converted the 2-D version to 3-D (with altitude) for even more fun. I was originally using a TRS-80 Color Computer, with a slightly di…
Raise your hands everyone who typed in Eliza clones in the mid-80s and thought you would solve general AI using BASIC in the not-too-distant future.
Re: BASIC Computer Games
#124Earlier quoted context omitted.
I had it too, but typed them into my Atari 800 - after which I'd save it to cassette tape.
Nice! My Commodore PET had a tape cassette drive. It was SOO unreliable.