The purpose of this code is to run an expansion memory test from a TI-99/4A console that operates within an 8K cartridge and console scratchpad ram. The target memory to test is not used by the operation of the program.
These are destructive memory tests... pre-loaded interrupt routines or RAM Disk content will be erased.
- Basic 32K memory expansions ( internal or external )
- Foundation 128K (or 512K modded)
- Myarc 128K or 512K
- SAMS Memory (upto 16M)
- Corcomp 256k/512k ramdisk
Other cards may fallback to basic 32K.
A SAMS hardware error may look like a 64K Foundation card due to overlapping paging schemes.
Set your TI tms9900gcc bin folder into your path. Set environment variable for path to Tursi's libti99 gcc library. Edit or comment out the part in the Makefile where it copies the rom into a place for classic99.
run: make
It will produce a exptest_c.bin 8K cartridge rom image.
This build is an example of using GCC to run code that doesn't actually require the 32k expansion ram for the TI-99/4A. It leaves interrupts off, sets the gcc stack to work backwards from the top of the TI scratchpad space (>8400). It sets the data segment (>8320) to begin write after the gcc workspace (>8300). And all of the constant and code goes into the 8k cartridge rom space (>6000).
Public Domain - Have fun, or see License.txt