Skip to content
Vadim Grigoruk edited this page Nov 22, 2026 · 6 revisions

Web Assembly (WASM) Support

TIC-80 supports compiled languages via our WASM binary support. Compile a .wasm file using an external compiler toolchain and then import that binary (up to to 256KB) into your TIC-80 cartridge. Many modern languages support compiling to WASM.

Unique WASM workflow/behavior

  • The built-in editor content is not used to edit your code.
    • editor comments must use the Lua style, e.g. -- this is a comment...
    • a -- script: wasm magic comment is required to use the wasm runtime
    • ...no code you type in the editor will ever be executed

WASM "hardware" limits

  • the compiled code is stored in up to four 64KB BINARY chunks, 256KB in total
    • binary .wasm files up to 256KB may be imported
  • 256KB addressable memory (four 64KB WASM pages)
    • 96KB base RAM for memory mapped I/O, SFX, VRAM, etc.
    • 160KB of RAM free for cartridge use

Starting a new compiled from source project

Copying one of the built-in project templates we provide is the best way to get started. These templates include both a tiny sample project and library bindings for the TIC-80 API.

If you're familiar with one of the languages above and would like to contribute an official library binding for TIC-80, we'd love your help! Just comment on #1784 or open a new GitHub issue.

Home
Tips for newcomers

Built-in Editors

Code | Sprites | Maps | SFX | Music

Console

All commands

save | export | load | import | menu | config | surf | shelf | demo | eval 

Platform

RAM | VRAM | Display | Palette | Bits per Pixel (BPP) | .tic Format | Supported Languages

Other

Tutorials | Code Snippets | Libraries | External Tools | FFT


API

All API functions

Callbacks

TIC | BOOT | MENU | BDR

  • SCN (deprecated)
  • OVR (deprecated)

Input

btn | btnp | btnr | key | keyp | keyr | mouse

Drawing

circ | circb | clip | cls | elli | ellib | font | line | map | paint | pix | print | rect | rectb | rrect | rrectb | spr | tri | trib | ttri | fill patterns

Sound

music | sfx | FFT | VQT

Memory

memcpy | memset | mget | mset | peek | poke | pmem | sync | vbank

System

exit | reset | time | tstamp | trace

Clone this wiki locally