E-mail Address
Password

Register
arasian > support > education > tutorial

Ti-83 and Ti-84 Assembly Programming
Getting Started
     1.1: About This Tutorial
     1.2: About TI-ASM
     1.3: Writing Your First Program
     1.4: Compiling
     1.5: Debugging
ASM Basics
     2.1: Calls and Jumps
     2.2: Registers
     2.3: Displaying Text
System Controls and Calls
     3.1: Data
     3.2: Register Stack
     3.3: If Statements (Comparing)
     3.4: GetKey and GetCSC
     3.5: System Flags
     3.6: Menus
     3.7: Displaying Pictures
     3.8: For Loops (djnz)
     3.9: White Loops
     3.10: OP Registers
Applications
     4.1: Apps vs ASM
     4.5: KeyHooks
Compiling

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.

To compile your program, simply type "compile yourprogramname" in the terminal while in the "Programs" folder.
Creative Commons License
The text in this tutorial is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.

Privacy Policy | Contact Us
(c) 1999-2010 Arasian. All rights reserved.