Page 2 of 62
SBasic User's Manual SBasic Version 2.7 Page 2
Printed: December 5, 1999
Introduction
This manual describes the use of the SBasic (SB) compiler. SB is a
PC-based cross-compiler for a subset of the Basic language. Source
files containing SBasic statements are compiled into a source file of
assembly language for the target machine. Subsequent assembly of that
file yields an exectuable file for the target machine.
SB creates code for either a 68hc11 or 68hc12 target. For the 68hc11,
SB's output code is compatible with the Motorola FREEWARE asmhc11
assembler, which is bundled with the SBasic distribution files. For
the 68hc12, SB's output code is compatible with the Motorola FREEWARE
as12 assembler, available from several sites on the Internet,
including my web site (http://www.seanet.com/~karllunt).
The SBasic compiler was written in Borland C (version 4.52), and is
compiled as a 32-bit DOS standard app. My SB design is loosely based
on a small Basic interpreter developed by Herbert Schildt and
presented in his excellent book, "The Art of C." (Osborne McGraw-
Hill, Berkeley, CA 94710; ISBN 0-07-881691-2)