Arasian | ASM Programming
 

Arasian Support

Both TASM and DevPac8x are DOS based. So, it would be helpful to learn some DOS commands. (You may also want to check out a short section on Learning DOS.) Here we go:
cd dirname--Change Directory to dirname
dir--List the contents of the current directory
ren filename -or- dirname--Rename file or directory
del filename--Delete File
move filename path---Move a file
copy filename path/new filename or filename new filename---Copy a file
deltree dirname--Delete Directory (Pre-WinXP only)
mkdir dirname--Make a new directory
edit--Start text editor with a new file
edit filename--Open file as text.
You can read the tutorial below to learn more, or you can just be lazy and download This. All your programs should be in the "programs" and to compile, just type compile and your program name.

With this newfound DOS knowledge, let's make a file that compiles your program. This will ONLY WORK if you have your directory's arranged in the following manner: Thee folders (wherever you want them, as long as they're all in the same folder), called TASM, with all the TASM stuff in it, DevPac8x, with all the DevPac8x stuff in it, and Programs. You also must put ti83plus.inc in the tasm folder, and any other include files you plan on having in your program. Open a DOS prompt and go to your "Program" folder. Type "edit compile.bat". It should bring up the text editing program. Type the following into it:

@echo off
echo Compiling...
move %1.z80 ..\tasm
cd ..\tasm
tasm -t80 -i -b %1.z80 %1.bin
move %1.z80 ..\programs
move %1.bin ..\devpac8x
cd ..\devpac8x
devpac8x %1
move %1.bin ..\programs
move %1.8xp ..\programs
cd ..\programs
echo Done!
This is a batch file. Save the file, then exit the editor.

****** START READING HERE IF YOU SKIPPED THAT PART ***********

Remember the program you wrote? Type "compile myprog" (replacing myprog with the name of your program). It should compile your program, and return you a .8xp file.

Problem 1.4.1--It says "Bad Command or File Name", or "compile is not recognized as a command...."
Problem 1.4.2--It says "myprog.z80--file not found"
Problem 1.4.3--It says "Unrecognized instruction: B_CALL"
Problem 1.4.4--There are errors (Number of errors>0), when I try to compile
Problem 1.4.5--Where did it put the final file?

Section 1.5---Using the debugger.