S-BASIC
| Company type | Software |
|---|---|
| Industry | Computer programming languages |
| Founder | Topaz Programming |
| Headquarters | San Ramon , United States |
| Products | Structured BASIC compiler and interpreter for CP/M systems |
| Owner | Micro-Ap |
S-BASIC (short for Structured Basic) represented a structured form of BASIC that was bundled with Kaypro CP/M machines. Created by Topaz Programming and marketed by Micro-Ap based in San Ramon, California, it was designed primarily for business professionals who required advanced programming tools on CP/M systems.
While SBasic preserved compatibility with traditional BASIC and Fortran77 syntax, it introduced enhanced flexibility features such as optional line numbering and allowance for non-numeric characters. The language incorporated structured programming elements including recursion and nesting, making it attractive to developers needing sophisticated control flow mechanisms. Additionally, many programs written in PL/I could be adapted with minimal effort, although SBasic did not offer a comprehensive function library.
One of SBasic’s distinctive business-oriented features was its capability to "base" variables or arrays, enabling dynamic adjustment of memory addresses during program execution. This functionality permitted direct interaction with system memory regions—including those typically reserved for the operating system—where allowed (notably, Kaypro’s CP/M environment imposed no such limitations). This direct memory access supported techniques like self-modifying code and runtime linking of executable components, thereby improving software adaptability and efficiency.
Contrary to standard BASIC interpreters that relied on "p-code", SBasic operated as a two-pass compiler, generating native .com file executables. Its compiler was implemented in a subset of SBasic itself and executed through a .com kernel, with compiled programs stored on floppy disks or hard drives in later KayPro models. Some KayPro distributions included the source code, fostering user-driven customization and early collaborative development reminiscent of open-source practices via physical diskette sharing.
It should not be confused with another product named SBasic associated with commercial Spectral UV-Visible analysis software.
Reception
In 1983, Jerry Pournelle described S-BASIC as "quite nice," remarking that it "rivals CB-80." He predicted that Kaypro users would initially utilize Microsoft MBASIC before adopting S-BASIC to benefit from structured programming capabilities. Though he criticized the original S-BASIC documentation as "the most unreadable computer document," he praised Kaypro’s revised manual as significantly clearer and more user-friendly.
References
- Notes