ti99basic - TI-99/4A BASIC as a scripting language
This source does not emulate
TMS9900
code. The function of the original
TMS9900 code is handled by native code. The Graphics Programming
Language (GPL) code is still run in a virtual machine just as it was on
the original hardware.
Download
Compatibility
It has been tested with
- Mac OS X 10.4/10.5 i386/x86_64/ppc (GCC 3.3/4.0)
- Debian Linux Etch (GCC 3.3/4.1)
- Windows XP (Visual Studio 2008)
Other CPUs, operating systems and compilers should work, too.
Compiling
To build from source you will need a copy of
Perl
and the original TI-99/4A ROMs. These files should have the following
MD5 sums:
6cc4bc2b6b3b0c33698e6a03759a4cab *rom.bin
ed8ff714542ba850bdec686840a79217 *grom.bin
Other versions of the files are unlikely to work.
Usage
The specifics of the dialect of BASIC used by the TI-99/4A are
available in the original
User's
Reference Guide. The Cassette, Disk, and Sound devices are not
currently emulated. You can use tibasic in interactive mode by just running the binary
without parameters, or you can specify an ASCII-encoded BASIC program
on the command line. You can also use tibasic as a UNIX scripting
language by adding a hashbang line to your BASIC program and making it
executable.
$ ls -l hello.bas
-rwxr-xr-x 1 user user 43 2009-08-06 23:55 hello.bas
$ cat hello.bas
#!/usr/bin/tibasic
10 PRINT "HELLO WORLD!"
$ ./hello.bas
HELLO WORLD!
Also included are 3 sample programs in the 'samples' directory. The
first two are sample games provided in the original manual; these
expect upper-case input at the prompts so it may be convenient to
turn on Caps Lock when running them.
Source
The latest source code can be found in the
repository.
License
Feel free to use this project for any purpose, give credit if you like,
and send back improvements to the authors, if you like, so that others can
benefit from it. See source for license details.
Contact
See Also
If you liked this you may enjoy
cbmbasic - Commodore BASIC V2 as a scripting language
$LastChangedDate$