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
Displaying Pictures

First you must get a picture that is 96x64, and save it as a Bitmap file. You may either draw this picture on the calculator and import it using Ti-Graph Link or Ti-Connect or you can draw it in Photoshop. After the picture is a calculator sized bitmap, use iStudio to convert the picture to Z-80 ASM. Open your program in Notepad and paste the converted code in. Rename the label Label1 to imgMyImage, replacing MyImage with a name relating to your image. Now scroll down and delete Label2 and everything below it (just in the image, don't delete the end of your program!). Now, we'll create a routine called DisplayImage that we can call to display this image.

DisplayImage:
     ld bc,12*64
     ld de,plotSScreen
     ld hl,imgMyImage
     ldir
     B_CALL(_GrBufCpy)
     ret

The image data should look something like this:

imgMyImage:
     .db $FF,$FF,$FF,$FF,$FF....
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.