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
White Loops

There is no special command to aid you with while loops in ASM, but you should already be able to build one. In the following code we will program the equivilant of "while b=0"
     ld b,4
TextLoop:
     push bc
     pop bc
     ld b,0
     ld a,b
     cp 0
     jp z,TextLoop

Now, this would be an infinite loop, but it's just for demonstration. Next, we will demonstrate how to do "while b!=0"

     ld b,4
TextLoop:
     push bc
     pop bc
     ld b,0
     ld a,b
     cp 0
     jp z,OtherLoop
     jp TextLoop
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.