THUNDERBIRDS Are Go! v1.2

Source Code Compilation Notes



 This document describes how to properly compile Thunderbirds. It's made a little difficult due to the fact that the file "tbdata.bin" is appended to the end of "tbirds.bin" after compilation but before linking. Sounds fun, eh?
 I wrote a program in Pascal to due this, simply called "fix.exe". To properly compile Thunderbirds, follow this set of instructions:


1.  Make another copy of the "asm.bat" file the comes with Ion. Call it something like "maketb.bat".
2.  Insert a line before both instances of "devpac83 %1" (one of them might read "devpac8x %1").
3.  On both the lines you inserted, write "fix".
4.  Make sure the "fix.exe" file is in your compilation directory, along with all the files that are #included in "tbirds.z80".
5.  Run the batch file!


 This should work. At the end of this file is the batch file I created myself to compile Thunderbirds, which you could use but you'd have to either structure your directories the same as on my computer or change the path names used in the batch file.
 If you have any questions or problems, please email me at james@calc.org.



MY BATCH FILE:


@ECHO OFF

ECHO Assembling THUNDERBIRDS Are Go! for the TI-83+...
COPY G:\CALCUL~1\JIMSOF~1\TBIRDS\V1.2\TBIRDS.Z80
ECHO #define TI83P >TEMP.Z80
TYPE TBIRDS.Z80 >>TEMP.Z80
TASM -80 -B -I TEMP.Z80 TBIRDS.BIN
IF ERRORLEVEL 1 GOTO TASMERRORS
MOVE TBIRDS.BIN G:\BP7\BIN\JAMES\TBIRDS
COPY G:\CALCUL~1\JIMSOF~1\TBIRDS\V1.2\EDITOR\TBDATA.BIN G:\BP7\BIN\JAMES\TBIRDS
CD\
CD G:\BP7\BIN\JAMES\TBIRDS
FIX
CD \
CD G:\CALCUL~1\COMPILE
MOVE G:\BP7\BIN\JAMES\TBIRDS\TBIRDS.BIN G:\CALCUL~1\COMPILE
DEVPAC8X TBIRDS
DEL TBIRDS.BIN
MOVE TBIRDS.8XP G:\CALCUL~1\JIMSOF~1\TBIRDS\V1.2

ECHO Assembling THUNDERBIRDS Are Go! for the TI-83...
COPY G:\CALCUL~1\JIMSOF~1\TBIRDS\V1.2\TBIRDS.Z80
ECHO #define TI83 >TEMP.Z80
TYPE TBIRDS.Z80 >>TEMP.Z80
TASM -80 -B -I TEMP.Z80 TBIRDS.BIN
IF ERRORLEVEL 1 GOTO TASMERRORS
MOVE TBIRDS.BIN G:\BP7\BIN\JAMES\TBIRDS
COPY G:\CALCUL~1\JIMSOF~1\TBIRDS\V1.2\EDITOR\TBDATA.BIN G:\BP7\BIN\JAMES\TBIRDS
CD\
CD G:\BP7\BIN\JAMES\TBIRDS
FIX
CD \
CD G:\CALCUL~1\COMPILE
MOVE G:\BP7\BIN\JAMES\TBIRDS\TBIRDS.BIN G:\CALCUL~1\COMPILE
DEVPAC83 TBIRDS
DEL TBIRDS.BIN
MOVE TBIRDS.83P G:\CALCUL~1\JIMSOF~1\TBIRDS\V1.2

GOTO END

:TASMERRORS
ECHO Compilation Error!

:END
DEL TBIRDS.Z80 > NUL
DEL TEMP.Z80 > NUL
DEL TEMP.LST >NUL
ECHO.