BASIC A+

Medium
Disk
Year
1981
Publisher
Optimized Systems Software, Inc.
Type
Language
Category
Extended Atari BASIC interpreter (disk)
Developer
Optimized Systems Software, Inc. (from the Shepardson Microsystems Atari BASIC code)
Language
6502 machine language
Requirements
Atari 400/800 (or later) with a disk drive; a 16K disk-loaded interpreter, normally used with OSS's OS/A+ DOS
Typewritten title page reading Optimized Systems Software, OSS BASIC A+ for the Atari 800, copyright 1981, May 1981, Version 3.1

Overview

BASIC A+ was the first of Optimized Systems Software's "better Atari BASICs", and it led directly to BASIC XL and BASIC XE. The authors of the original Atari BASIC wrote it, and they kept the language the Atari owner already knew: the same statements, the same graphics and sound calls and the same editing style. On top of that they added roughly 5K of new features. Unlike its successors it came only on disk. It was normally sold alongside OS/A+, OSS's command-line DOS, and the two made a complete programming system for the 400 and 800.

Features

Mike Dunn's write-up in The Creative Atari counts 43 new statements and functions. The main ones are:

  • Structured control flow: IF … ELSE … ENDIF blocks that can run over several lines, and WHILE … ENDWHILE loops. LIST indents these blocks automatically, so nested loops are easy to follow.
  • Friendlier editing: you can type keywords in lower case or inverse video and they are listed in upper case. DEL removes a range of lines. TRACE shows execution as it happens, and you can list every variable in use.
  • Business output: PRINT USING for formatted figures, a TAB function, fixed-length record commands for random-access files, and an INPUT "prompt" form that asks again by itself if you enter the wrong kind of data.
  • Strings and memory: a FIND substring search, subscripts on INPUT and READ, DPEEK/DPOKE for two-byte values, and SET/SYS to change system defaults without POKEs.
  • Error handling and DOS access: readable error messages instead of bare numbers, IF ERR tests, and disk directory and file commands that work from inside BASIC.
  • Player/missile graphics: fourteen dedicated commands, including PMGRAPHICS, PMCLR, PMCOLOR, PMMOVE, MISSILE and the PMADR and BUMP functions, plus the HSTICK/VSTICK joystick functions. With these, sprite animation becomes almost as simple as PLOT and DRAWTO.

Here is a short example in the style of Dunn's demonstration programs. It shows a player shape that you steer with the joystick:

10 GRAPHICS 0:PMGRAPHICS 2:PMCLR 0
20 PMCOLOR 0,13,8:H=120:V=60
30 P0=PMADR(0)
40 FOR A=P0+V TO P0+V+4:READ D:POKE A,D:NEXT A
50 WHILE 1
60   HS=HSTICK(0):VS=VSTICK(0)
70   H=H+HS:V=V-VS:PMMOVE 0,H;VS
80 ENDWHILE
90 DATA 153,189,255,189,153

Behind the scenes

OSS was formed by former Shepardson Microsystems staff, including Bill Wilkinson and Mike Peters, and in 1981 it bought the rights to the Atari BASIC source code. BASIC A+ was its first product built on that code. In Antic's 1986 retrospective Christopher Chabris contrasts it with Atari's Microsoft BASIC: BASIC A+ stayed compatible with Atari BASIC source code, with only a few minor exceptions. Dunn's article adds one practical caveat. Programs saved in tokenised form by Atari BASIC had to be LISTed to text and re-ENTERed before BASIC A+ could use them. Dunn liked the system, but he also noted that anyone who wanted to run your programs would need BASIC A+ too. OSS answered that with a one-time runtime licence for software developers.

The 1983 Creative Atari survey of Atari languages was less impressed. It found BASIC A+ just as slow as the cartridge it came from and pointed out that it shared some of the same bugs. It welcomed the player/missile and disk commands, though, and wanted integer variables next. Speed came with the cartridge-based BASIC XL, whose FAST mode answered that complaint directly.

Dunn quoted prices of $80 for BASIC A+, $80 for OS/A+ and $150 for the pair. The pair was also bundled with other companies' hardware. Percom's AT88-S1 and AT88-S2 drives and early Astra 1620 dual drives came with OS/A+ Version 2 and BASIC A+.

Versions & releases

BASIC A+ dates from 1981. Version 3.05 is preserved, and versions 3.00, 3.01, 3.04 and 3.1 are known to have existed but have not been archived. The version 3.1 manual's title page is dated May 1981 and names the Atari 800 as the target machine. The disk-based design meant OSS could ship fixes as "FIXER" patch programs, an advantage Dunn noted over a ROM cartridge.

Using it today

Disk images of BASIC A+ survive, so it runs in any emulator. Use a disk-equipped 400/800 configuration with plenty of RAM and boot the BASIC A+ disk with its OS/A+ (or compatible) DOS. The Creative Atari survey called it a "16K disk-based Basic". The interpreter sits in the same RAM your program needs, so large programs that also use graphics run short of memory sooner than they would with a cartridge BASIC. For new projects most people use BASIC XL or BASIC XE, which run almost all BASIC A+ code faster. BASIC A+ is still worth a look as the bridge between Atari BASIC and the later OSS languages.

Credits