Command-line reference

The commands below are also available as ti84py. Each section shows the output of that command’s --help.

Source arguments

build, compile, and check accept a .py file, a project folder, or nothing, which uses the project in or above the current folder.

Exit codes

Commands exit with 0 on success and 1 on an error. check exits with 1 if any target fails. Invalid arguments exit with 2.

Error format

Compile errors use FILE:LINE: error: MESSAGE, followed by the source line, so editors can link to them.

Converting fonts

tipy-asm convfont matches CEdev’s convfont v1.2: the same options, exit codes, and output bytes. It reads .fnt files with -f and text-format fonts with -t. Options such as -a and -w apply to the font named before them.

There are two small differences. -z works as CEdev’s help describes, while its binary rejects it. A failed run also never leaves an empty output file behind.

TTF and OTF files are not read. Convert them with a separate tool first. To make an AppVar by hand, build a font pack and pass it to convbin:

tipy-asm convfont -o fontpack -f myfont.fnt -N "My Font" myfont.bin
tipy-asm convbin -j bin -i myfont.bin -k 8xv -n MYFONT -o MYFONT.8xv

tipy-asm new

Create a project that builds straight away.

usage: tipy-asm new [-h] [--name NAME] [--target {classic,ce,both}] folder

positional arguments:
  folder                folder to create; use . for the current folder

options:
  -h, --help            show this help message and exit
  --name NAME           program name, 1-8 letters or digits (default: from
                        the folder)
  --target {classic,ce,both}
                        default: ce

tipy-asm build

Assemble source into calculator .8xp programs and build assets.

usage: tipy-asm build [-h] [--project DIR] [-o OUTPUT] [--name NAME]
                      [--target {classic,ce,both}]
                      [--classic-assembler CLASSIC_ASSEMBLER]
                      [--ce-assembler CE_ASSEMBLER] [--keep-asm] [--force]
                      [--watch]
                      [source]

positional arguments:
  source                input .py file, or a project folder (default: the
                        project in or above the current folder)

options:
  -h, --help            show this help message and exit
  --project DIR         project folder containing pyproject.toml (default:
                        search from the current folder)
  -o, --output OUTPUT   output .8xp file (default: source name .8xp)
  --name NAME           TI program name (up to 8 characters)
  --target {classic,ce,both}
                        calculator architecture to generate (default:
                        project target, else classic)
  --classic-assembler CLASSIC_ASSEMBLER
                        path to SPASM-ng (default: spasm-ng, spasm, or
                        spasm64 on PATH)
  --ce-assembler CE_ASSEMBLER
                        path to fasmg (default: fasmg on PATH)
  --keep-asm            also write the generated assembly next to the
                        program
  --force               rebuild assets even if they are up to date
  --watch               rebuild whenever a source file or asset changes

tipy-asm compile

Compile source to assembly without assembling it.

usage: tipy-asm compile [-h] [--project DIR] [-o OUTPUT] [--name NAME]
                        [--target {classic,ce,both}]
                        [source]

positional arguments:
  source                input .py file, or a project folder (default: the
                        project in or above the current folder)

options:
  -h, --help            show this help message and exit
  --project DIR         project folder containing pyproject.toml (default:
                        search from the current folder)
  -o, --output OUTPUT   output .asm file (default: source name .asm)
  --name NAME           TI program name (up to 8 characters)
  --target {classic,ce,both}
                        calculator architecture to generate (default:
                        project target, else classic)

tipy-asm check

Report errors on every target without writing files.

usage: tipy-asm check [-h] [--project DIR]
                      [--target {classic,ce,both,flash}]
                      [source]

positional arguments:
  source                input .py file or project folder (default: current
                        project)

options:
  -h, --help            show this help message and exit
  --project DIR         project folder containing pyproject.toml
  --target {classic,ce,both,flash}
                        target to check (default: project target, else both
                        assembly targets)

tipy-asm flash-app

Link a CEdev Flash App and build its installer.

usage: tipy-asm flash-app [-h] [--project DIR] [--project-dir PROJECT_DIR]
                          [--name NAME] [--appvar-prefix APPVAR_PREFIX]
                          [--installer-name INSTALLER_NAME]
                          [--appvar-split-size APPVAR_SPLIT_SIZE]
                          [--optimize {speed,size}]
                          [source]

positional arguments:
  source                input .py file (default: the project's main file)

options:
  -h, --help            show this help message and exit
  --project DIR         project folder containing pyproject.toml
  --project-dir PROJECT_DIR
                        folder to build in, which may hold a custom
                        installer/makefile (default: [tool.tipy.flash]
                        project_dir, else the project folder)
  --name NAME           Flash App name (up to 8 characters)
  --appvar-prefix APPVAR_PREFIX
                        override the installer's payload AppVar prefix (1-6
                        letters/digits)
  --installer-name INSTALLER_NAME
                        override the installer's calculator program name
  --appvar-split-size APPVAR_SPLIT_SIZE
                        override the installer's payload split size in bytes
  --optimize {speed,size}
                        favor runtime speed or smaller output (default:
                        project setting, else speed)

tipy-asm clean

Delete the project’s build output folder (bindir).

usage: tipy-asm clean [-h] [--project DIR]

options:
  -h, --help     show this help message and exit
  --project DIR  project folder containing pyproject.toml

tipy-asm doctor

Show which tools are installed and how the project is set up.

usage: tipy-asm doctor [-h] [--project DIR]

options:
  -h, --help     show this help message and exit
  --project DIR  project folder containing pyproject.toml

tipy-asm api

List library methods and the targets that support them.

usage: tipy-asm api [-h] [library]

positional arguments:
  library     library name, such as graphics

options:
  -h, --help  show this help message and exit

tipy-asm convbin

Convert binary data to TI files or C/asm/ICE arrays (like CEdev’s convbin).

usage: tipy-asm convbin [-h] [-i FILE] [-j MODE] [-o FILE] [-k MODE]
                        [-n NAME] [-r] [-u] [-a] [-m MAXVARSIZE]
                        [-b COMMENT] [-c MODE] [-p MODE] [-e MODE]

options:
  -h, --help            show this help message and exit
  -i, --input FILE      input file; repeat to append in order
  -j, --iformat MODE    format of the next input file: bin, csv (default
                        bin)
  -o, --output FILE     output file
  -k, --oformat MODE    output format: bin, 8xp, 8xv, 8xv-split, c, asm, ice
                        (default bin)
  -n, --name NAME       on-calc name, or array/label name for c, asm, ice
  -r, --archive         mark TI variables as archived
  -u, --uppercase       uppercase the on-calc name
  -a, --append          append to the output file
  -m, --maxvarsize MAXVARSIZE
                        maximum size of each split AppVar (default 65200)
  -b, --comment COMMENT
                        comment stored in TI files
  -c MODE               compression (not supported yet)
  -p MODE               input compression (not supported yet)
  -e MODE               8xp compression (not supported yet)

tipy-asm convimg

Convert an image to an AppVar or C/asm/ICE pixel data (like CEdev’s convimg).

usage: tipy-asm convimg [-h] [-o FILE] [-k MODE] [-n NAME]
                        [-m {rgb565,palette}] [--palette-size PALETTE_SIZE]
                        image

positional arguments:
  image                 input image file (PNG, BMP, ...)

options:
  -h, --help            show this help message and exit
  -o, --output FILE     output file
  -k, --oformat MODE    output format: bin, 8xv, c, asm, ice (default 8xv)
  -n, --name NAME       AppVar or array/label name (default: output stem)
  -m, --mode {rgb565,palette}
                        pixel encoding (default rgb565)
  --palette-size PALETTE_SIZE
                        colors in the palette, excluding transparency
                        (default 255)

tipy-asm convfont

Convert .fnt and text-format fonts to FontLibC data, exactly like CEdev’s convfont.

usage: convfont -o <output format> -f <font FNT> [-metrics] [-f <font FNT 2> [-metrics]] <output file name>

Usage:
	convfont -o <output format> -f <font FNT> [-metrics] [-f <font FNT 2> [-metrics]] <output file name>
	Specifying more than one input font is only valid for the font pack output format.

Output formats:
	-o fontpack: A fontpack ready to be passed to convbin
	-o carray: A C-style array
	-o asmarray: An assembly-style array
	-o binary: A straight binary blob
	-Z: Use CR+LF newlines (default on Windows)
	-z: Use LF newlines (default elsewhere)

Individual font properties:
	-f: <file name> input Font
	-t: <file name> input Text-format font
	-a: <n> space Above
	-b: <n> space Below
	-i: <n> Italic space adjust
	-w: <n> Weight
	    The following strings may also be used:
	        thin, extralight, light, semilight, normal, medium, semibold, bold, extrabold, black
	-s: <n> Style
	    The following strings may also be used:
	        sans-serif, serif, upright, oblique, italic, monospaced, proportional
	-c: <n> Cap height
	-x: <n> x height
	-l: <n> baseLine height
	Numbers may be prefixed with 0x to specify hexadecimal instead of decimal.

Font pack properties:
	-N: "<s>" font pack Name
	-A: "<s>" Author
	-C: "<s>" pseudoCopyright
	-D: "<s>" Description
	-V: "<s>" Version
	-P: "<s>" code Page

tipy-asm cedev-config

Get CEdev toolchain configuration (like CEdev’s cedev-config).

usage: tipy-asm cedev-config [-h] (--version | --prefix | --makefile)

options:
  -h, --help  show this help message and exit
  --version   print toolchain version
  --prefix    print installation prefix
  --makefile  print core toolchain makefile path

tipy-asm convert-project

Convert a CEdev, ICE, or Axe project to a TIpy-asm project.

usage: tipy-asm convert-project [-h] [-o OUTPUT]
                                [--type {auto,cedev,ice,axe}] [--verbose]
                                project

positional arguments:
  project               CEdev, ICE, or Axe project folder, or a single
                        source file

options:
  -h, --help            show this help message and exit
  -o, --output OUTPUT   output folder (default: PROJECT_converted)
  --type {auto,cedev,ice,axe}
                        project type (default: detect from the source files)
  --verbose, -v         list every file written and every warning

tipy-asm decompile

Turn a .8xp or other TI file back into source: TI-BASIC or Axe text, or a Z80/eZ80 disassembly.

usage: tipy-asm decompile [-h] [-o OUTPUT] file

positional arguments:
  file                 a TI variable file, such as a .8xp program or a .8xv
                       AppVar

options:
  -h, --help           show this help message and exit
  -o, --output OUTPUT  where to write (default: next to FILE, as NAME.asm or
                       NAME.txt); - prints it

tipy-asm convert-image

Convert a PNG or other Pillow image to TIpy sprite source.

usage: tipy-asm convert-image [-h] [-o OUTPUT] [--x X] [--y Y]
                              [--alpha-threshold ALPHA_THRESHOLD]
                              [--fit {classic,ce}]
                              image

positional arguments:
  image                 input image file

options:
  -h, --help            show this help message and exit
  -o, --output OUTPUT   output Python source (default: IMAGE_sprite.py)
  --x X                 sprite left coordinate (default: 0)
  --y Y                 sprite top coordinate (default: 0)
  --alpha-threshold ALPHA_THRESHOLD
                        alpha values below this become transparent (default:
                        128)
  --fit {classic,ce}    shrink to fit the selected calculator screen using
                        nearest-neighbor scaling