Regenerator 2000
Regenerator 2000 is an interactive 6502 disassembler for Commodore 8-bit machines. It follows the design of the original Regenerator.
- ⚡ Fast: Starts immediately, scrolls large binaries smoothly, and updates control flow and cross-references in real time.
- ⏪ Non-Destructive: Records every edit in the undo history so you can experiment with code, data, and labels safely.
- ⌨️ Keyboard-First: Uses single-key shortcuts, arrow or Vim keys, and optional mouse support.
You can work in two ways:
- 🕹️ Manual Analysis: Use the terminal UI to navigate code, mark data regions, label subroutines, and add comments.
- 🤖 Automated Analysis: Connect an AI assistant via the built-in MCP Server to classify blocks, trace routines, and name symbols.
Use either workflow on its own, or run an initial AI pass and refine the results by hand.
See the Examples page for pre-disassembled games across Commodore platforms.
Features
- Disassembly: Decodes the full 6502 instruction set and undocumented opcodes.
- Side-by-Side Views:
- Hex Dump: Shows raw bytes with synchronized or independent navigation, plus unshifted PETSCII, shifted PETSCII, and screencode text.
- Sprites: Shows 64-byte chunks in single-color or multicolor mode.
- Bitmap: Shows high-resolution (320x200) and multicolor (160x200) modes via Kitty, iTerm2, Sixel, or Halfblocks fallback.
- Charset: Shows 8x8 character tiles in single-color or multicolor mode.
- Blocks: Shows the macro layout of Code, Data, Undefined regions, Address Regions, Scopes, and Splitters.
- Debugger: Connects to VICE for live disassembly, breakpoints, and step controls (F2-F9) in the right pane.
- Mini map: Shows a mini map of the analyzed file.
- Systems: Supports C64, C128, VIC-20, Plus/4, PET 4.0, PET 2.0, and 1541.
- Import: Loads
.prg,.crt(v1.0-v2.0 for C64, VIC-20, C128, and Plus/4),.d64,.d71,.d81,.t64,.vsf,.dis65, and.regen2000proj. Also loads raw.binand.rawfiles withCBM80,Ultimax,A0CBM, andCBMheader detection. - Binary Unpacker: Runs packed programs inside a sandboxed 6502 CPU to extract the unpacked binary.
- Export: Writes
.asmor HTML for 64tass, ACME, Kick Assembler, and ca65. - Project Management: Saves and loads project state.
- Analysis: Identifies code and data regions and builds typed cross-references.
- Editing:
- Labels: Adds, edits, and removes local and global labels.
- Enums: Maps numeric literals to System, Global, and Project enum names.
- Comments: Adds side comments and line comments.
- Origin: Changes the load address (origin) of the binary.
- Address Regions: Maps relocated overlays, non-addressable gaps, physical pre-labels, and isolated secondary-CPU code (such as 1541 drive firmware) with
Shift+R. Pins target regions per site across overlays. - Routine Scopes: Creates, edits, relabels, resizes, and removes lexical subroutine scopes (
r). - Data Types: Marks regions as Code, Byte, Word, Address, Lo/Hi or Hi/Lo tables, PETSCII, Screencode, External File, or Undefined.
- Undo/Redo: Tracks full history for all edits.
- Navigation: Jumps to addresses, line numbers, operand targets, cross-references, and history locations.
- Customization: Sets maximum x-refs, target system, target assembler, and label visibility.
- TUI: Provides a keyboard-driven terminal UI with Vim-style Visual Mode for batch edits.
- MCP Server:
- Exposes tools over HTTP and stdio for disassembly edits, memory search, block operations, and relocated Address Regions.
- Exposes resources for binary data and views.
- Includes skills for block classification, relocated payload mapping, routine tracing, and symbol naming.
Requirements
Recommended Terminals
Use a modern terminal to ensure full support for keyboard shortcuts and rendering.
| Platform | Recommended Terminals |
|---|---|
| Windows | Windows Terminal, WezTerm |
| macOS | iTerm2, Ghostty, kitty, WezTerm |
| Linux | Ghostty, kitty, WezTerm |
Installation
From Crates.io
cargo install regenerator2000
From Source
git clone https://github.com/ricardoquesada/regenerator2000.git
cd regenerator2000
cargo install --path .
Quick Start with AI Agents
Use the regenerator2000-template repository to analyze binaries with Antigravity or Claude Code. It comes with the required skills and agent permissions configured.
Usage
Start the application with an optional file path:
regenerator2000 [OPTIONS] [path/to/file.prg]
CLI Options
--help: Print the help message.--version: Print version information.--import_lbl <PATH>: Import VICE labels from a file.--export_lbl <PATH>: Export labels to a file after analysis or import.--export_asm <PATH>: Export assembly code to a file after analysis or import.--export_html <PATH>: Export HTML to a file after analysis or import.--assembler <NAME>: Override the assembler format for export (64tass,acme,ca65, orkick).--headless: Run in headless mode without the TUI for batch processing.--verify: Check export roundtrip (export, assemble, and compare) for all assemblers. This flag implies--headless.--mcp-server: Run the MCP server over HTTP on port 3000.--mcp-server-stdio: Run the MCP server over stdio.--vice <HOST:PORT>: Connect to the VICE binary monitor at startup (for example,--vice localhost:6502).--dump-system-config-files <PATH>: Write all built-in system config files (system-*.toml) to a directory and exit.--dump-theme-files <PATH>: Write all built-in theme files (theme-*.toml) to a directory and exit. Place modified files in the config directory to add custom themes.--dump-enum-files <PATH>: Write all built-in enum files (enum-*.toml) to a directory and exit. Place modified files in the config directory to add custom enums.
Supported file formats: .prg, .crt, .d64, .d71, .d81, .t64, .vsf, 6502bench (.dis65), .bin, .raw, and .regen2000proj.
Keyboard Shortcuts
See the Keyboard Shortcuts page for the complete list of shortcuts.
Support and Documentation
- Documentation (retro.moe/regenerator2000)
- Examples: View disassembled Commodore games and software across supported platforms.
- Support in Discord: Join the
#regenerator2000channel under "Misc Projects".
Contributing
Submit a Pull Request to contribute changes.
Acknowledgements
- Regenerator: The original 6502 disassembler for Windows.
- unp64: The C64 binary unpacker by iAN CooG that forms the basis of the
regenerator2000-unpackercrate. - 64tass, ACME, Kick Assembler, ca65: Supported assemblers.
License
Dual license: MIT and Apache 2.