Getting started
Install
TIpy-asm needs Python 3.10 or newer. From a checkout of the repository, run:
python -m pip install .
This installs the tipy-asm command and a shorter alias, ti84py.
CE builds need nothing else and work offline, because the package includes
fasmg for Windows and Linux (x64 and x86) along with its CE includes. On other
systems, such as macOS, put fasmg on your PATH.
Two targets and one converter need extra tools:
To use |
You need |
|---|---|
The classic target |
SPASM-ng on your |
Flash Apps |
CEdev; the installer is built for you |
Image assets |
Pillow: |
Run tipy-asm doctor at any time to see what is installed.
Create a project
tipy-asm new mygame
cd mygame
tipy-asm build
This writes bin/MYGAME.8xp. Send that file to your calculator, or load it in
the CEmu emulator. The program draws a
square that you move with the arrow keys. Press Clear to quit.
To run it on a TI-84 Plus CE, choose it from the prgm menu. Depending on your OS version, you may need a shell such as Cesium, or the arTIfiCE jailbreak, to run assembly programs.
Edit src/main.py and build again. While you work, this rebuilds whenever you
save a file:
tipy-asm build --watch
Check your code
tipy-asm check compiles for each target without writing any files. Errors
point at your own file and line, and suggest a fix where they can:
src/main.py:12: error: graphics has no method pixl(); did you mean graphics.pixel()? run 'tipy-asm api graphics' to list them
graphics.pixl(x, y)
Examples
Each folder in examples/ in the repository is a project. Build one with:
tipy-asm build examples/catch --target ce
Example |
Targets |
Shows |
|---|---|---|
|
CE, classic |
A small game: functions, several source files, arrays, random numbers, held keys, and a high score saved with storage. |
|
CE, classic |
A spinning star: math |
|
CE, classic |
Dice rolls: random, |
|
CE |
A sprite you move with the arrow keys: a PNG built into an AppVar by
|
|
CE |
A coin hunt that stores PNG sprites all three ways: in its own AppVar, in a shared pack, and built into the program. See Projects. |
|
CE, classic |
A bouncing ball from a PNG built into the program, so it needs no AppVar. |
|
CE, classic |
Routines written in assembly files. |
|
Flash App |
Hello world as a Flash App, with its installer. |
Next, read about the language, or browse the library methods.