ZBASIC

written by Matthew Reed

Simutek advertisement

Simutek advertisement from the November 1980 issue of 80 Microcomputing

ZBASIC is probably the most popular BASIC compiler ever written for the TRS‑80. It holds the distinction of being one of the few programs originally created for the TRS‑80 that is still being developed in some form.

The first version of ZBASIC was written in 1979 by Andrew Gariepy for the Model I and sold by Simutek Computer Products. ZBASIC began appearing in Simutek advertisements in 1980. It originally cost $99.00 for the tape version and $129.00 for the disk version.

ZBASIC fell somewhere between a traditional compiler and an interpreter. As an early advertisement described it:

ZBASIC is an “Interactive Compiler.” This means it is resident while you write your BASIC programs. You may compile your program and run it or save it, without destroying your resident BASIC program! In fact, jumping back and forth between your compiled program and your BASIC program is one of its best features!

Despite its tight integration with interpreted BASIC, ZBASIC compiled to pure Z80 machine language. Compilation time was very fast, described as two seconds for a 4K program.

In contrast to many other compilers (most notably the Microsoft BASIC Compiler), Simutek charged no royalties on sales of programs compiled with ZBASIC. The only requirement was that this message had to be displayed for at least one second upon program start:

THIS PROGRAM WAS COMPILED USING THE ZBASIC COMPILER. COPYRIGHT SIMUTEX COMPUTER PRODUCTS INC. and ANDREW GARIEPY.

That message could be seen on a number of TRS‑80 programs at the time. The most famous was probably the word processor CopyArt, written by Michael Gariepy and also sold by Simutek.

Simutek advertisement

Simutek advertisement from the November 1982 issue of 80 Microcomputing

Version 2

The best remembered TRS‑80 version of ZBASIC was version 2, specifically 2.2, which was introduced in 1982. The price for the newer version was actually lower than the first: the disk version cost $89.95, the tape version cost $79.95, and both tape and disk versions together cost $99.99.

ZBASIC boasted speed increases of 10 to 100 times over interpreted BASIC. There were a number of new features, including:

  • both random and sequential disk I/O
  • a high-precision math package (with no rounding problems)
  • machine language commands
  • program chaining

ZBASIC supported most BASIC commands, with only a few exceptions. For obvious reasons, program editing commands such as AUTO, LIST, and EDIT were not supported. The only other major group of unsupported commands were mathematical functions such as SIN and COS, but there were substitutes for these functions in the ZBASIC manual.

I always liked the Simutek advertisements. They were quite informative and listed not only the features but also the unsupported BASIC commands.

Zedcor advertisment

Zedcor advertisement from the December 1985 issue of 80 Micro

Version 3

Version 3 of ZBASIC was a complete rewrite and there were a number of changes. Foremost among them was the company name: Simutek was now named Zedcor. There was no longer any tape version, but the disk version still cost $89.95. Also, ZBASIC was now a full-fledged compiler, not an “interactive compiler.” There was no longer any reliance on interpreted BASIC. Programs could now be written, edited, and compiled entirely within ZBASIC.

In addition to the TRS‑80 version, there were also versions for the IBM PC, Apple II, CP/M, and the Macintosh. Platform compatibility was a highly touted feature. There were many other improvements, including:

  • the mathematical functions which were missing in previous versions
  • high resolution graphics commands, which even supported the Model 4 high-resolution board.
  • commands to support structured programming (“spaghetti optional,” as the advertisements put it)

There were future versions of ZBASIC, but version 3.1, released in August 1986, was the last to support the TRS‑80.

In 1991, the MS-DOS version of ZBASIC was sold to 32 Bit Software. In 1992, Zedcor renamed the Macintosh version of ZBASIC to FutureBASIC. In 2008, Staz Software, the current owner of FutureBASIC, made it freeware.