The universal Atari assembler

rg-asm

Free universal 680x0 and DSP 56k assembler targeting Atari systems.

Key features

  • Universal Input: Reads existing Atari assembler dialects such as Devpac, vasm, and RMAC.
  • Universal Output: Built-in linker, can assemble to a runnable PRG, or emit objects for linking with external tools.
  • Universal CPU: Supports 68000 through 68060, 68881/68882 FPUs, ColdFire, Atari Jaguar (Tom & Jerry JRISC), and Atari Lynx (65SC02 / 6502 / 65C02).
  • Atari Jaguar (68000 & Tom / Jerry): Assemble standalone Tom GPU and Jerry DSP kernels, or embed inline .gpu and .dsp blocks directly inside 68000 Jaguar sources.
  • Atari Lynx (65SC02 & 6502): Two-pass 6502, 65C02, and Lynx 65SC02 assembly with BLL directives, zero-page narrowing, multi-file ELF linking, and .o / .lnx outputs.
  • Motorola DSP 56001: Standalone assembly for Atari Falcon DSP kernels, with support for all the key output formats.
  • Mixed-Mode 68k & DSP: Embed DSP56001 code directly within 680x0 source files, sharing symbols, equates, and structured data offsets.
  • Universal Binaries: Cross compile from native binaries for Linux, Mac and Windows. Single executable with no dependencies: download, unzip and run.
  • Complete Syntax: Macros, conditionals, sections, and includes across every major Atari assembler syntax.
  • Diagnostics & Metrics: Shows instruction cost on every CPU. Per function breakdown of cycle and byte cost. Every metric can be output to json to be processed by other tools.
  • Language Server: Built-in LSP for your editor, giving live errors, jump-to-definition, and cycle-cost hover as you type.
  • 68k Inside: rg-asm is built around a full 68k emulator, so it can fully understand every instruction. Can even reorder instructions to benefit from pipeline pairing.
rg-asm; assemble & link
$ rg-asm hello_gemdos.s
  █▀▀▄ █▀▀▀
  █▀█▄ █ ▀█   RESERVOIR GODS
  ▀  ▀ ▀▀▀▀   rg-asm 0.12.10 · 680x0 & DSP 56k assembler
 
  ✓ Assembling hello_gemdos.s
  ✓ Linking HELLO.PRG (136 bytes)
  ✓ assembled 1 file in 80ms
 
┌────────┬───────┐
│ item   │ bytes │
├────────┼───────┤
│ text   │    26 │
│ data   │    22 │
│ bss    │     0 │
│ sym    │    56 │
│ reloc  │     4 │
├────────┼───────┤
│ binary │   136 │
└────────┴───────┘
$ 

Quick start

rg-asm main.s util.s                           # assemble and link → MAIN.PRG
rg-asm --obj player.s                          # emit relocatable object for C linkers
rg-asm game.s --listing                        # per-instruction cycle timing & metrics
rg-asm falcon_game.s                           # 680x0 + inline Falcon DSP mixed-mode

Verify

After unzipping, check the extracted files (the archive includes SHA256SUMS):

sha256sum -c SHA256SUMS

Learn more

Help