Home

Awesome

TurboBasic XL v1.5 disassembly

This is a disassembly of the TurboBasic XL version 1.5 basic interpreter for the Atari XL computers, in MADS assembler format.

To assemble you need MADS from http://mads.atari8.info/ and my mkatr tool, from https://github.com/dmsc/mkatr/.

The source is assembled into two binaries:

This is a work in progress, but most labels have proper name and the code has many comments.

This code was tested to assemble at different address than the original binary without breaking.

Relocation

The provided Makefile generates a version of the interpreter that relocates itself to the lowest address posible, by reading MEMLO and copying the code to just above the value. This gives more memory to the BASIC programs, depending on the DOS version.

To assemble this version, the procedure is:

To assemble this version, use the tb_lowmem define, or use the included Makefile.

Fixed Bugs

The source has fixes for a few interpreter bugs present in all other TurboBasic XL versions: