Hacker News new | ask | show | jobs
by Zardoz84 39 days ago
Don't talk bad about ZX Basic. It had :

- IF THEN

- FOR

- GOSUB / RETURN

- DEFN

- GOTO

- READ / DATA

That was the same thing that any 8 bit BASIC of the era.

I have yet my books of learning BASIC (for kids), and there for ZX Spectrum, Commodore, Apple 2, etc... And only had that. The only thing that I remeber lacking compared againts other BASICs, was the ON GOTO, ON GOSUB and ELSE . On the control of flow in BASIC... That is all.

I will not see something more advanced (and without numbering the lines), like while and do loops, or select case, proper subrutines and functions, until I touch Turbo BASIC (and QBASIC)

3 comments

There was a wild range in capabilities in the various BASIC implementations of that time. I grew up with an Amstrad CPC6128, it came with Locomotive BASIC (https://en.wikipedia.org/wiki/Locomotive_BASIC), which was very capable: at one point I had written a multiplayer game with background music in it, without needing a single PEEK, POKE or CALL. The few times I saw Commodore BASIC programs it was littered with those three.
IIRC the older Microsoft Basic for CP/M was significantly more powerful than ZX Basic.

This is not surprising because the Microsoft Basic was intended for computers with 8 inch floppy disks (the much larger predecessors of the 5 1/4 inch floppy disks familiar to IBM PC users), while ZX Basic had to run from a ROM with only cassette storage. Thus the former was expected to be used for bigger programs that could also process much more data.

The Microsoft Basic for CP/M was very similar to the later GW-BASIC for MS-DOS.

The advantages of Microsoft Basic that mattered for me at that time were less about any improved program control structures, but about more powerful data types, for instance double-precision 64-bit floating-point numbers.

It was, never used it, but it already suffices that it supported structured BASIC and a proper compiler.

Also to note, the original Darthmond BASIC was much more powerful than the ones on 8 bit micros due to hardware restrictions, exception to those that were good enough to run CP/M.

Similar progression path for me, with GW-BASIC in the middle.

However, I got a structured BASIC for the Speccy in a MicroHobby or Micromania magazine (cannot remember exactly), with screen editor, but naturally had the problem it would make the 48 KB memory size even smaller.

It would work better on the 128 KB models, but those lucky ones to own a 128 +3A could get hold of CP/M, with support for Mallard BASIC, CBASIC and BASCOM.