In-Browser 6502 & Z80 Cross-Assembler, Disassembler & .PRG / .TAP Binary Studio

Multi-pass client-side MOS 6502/6510 & Zilog Z80 assembler and disassembler with live syntax highlighting, synchronized hex dump, and downloadable C64/VIC-20 .PRG & ZX Spectrum .TAP binaries

In-Browser 6502 & Z80 Cross-Assembler, Disassembler & .PRG / .TAP Binary Studio

Compile MOS 6502 / 6510 (Commodore 64, VIC-20) and Zilog Z80 (ZX Spectrum 48K/128K) assembly source directly into launch-ready .PRG (with optional BASIC SYS autostart stub) and Sinclair .TAP tape binaries in your browser — then drop your compiled .PRG or .TAP straight into our Multi-System Retro Emulator Hub →

Target CPU & Format MOS 6510 · C64 .PRG
Origin & Entry Vector .org $080D (SYS 2061)
Assembled Output Size 68 Bytes ($0801–$0842)
Symbols & Labels 6 Resolved Symbols
Assembler Status Pass 1 & 2 OK (0 Errors)
1. Assembly Source Editor (Syntax Highlighted)
✓ Multi-Pass Assembly Complete: 0 errors. Ready to download .PRG / .TAP binary.
Two-Way Disassembler: Drop a .PRG, .TAP, or .BIN file here (or click Upload) to disassemble machine code into the editor:
2. Live Hex Dump, Synchronized Disassembly & Binary Export
Line Address Hex Bytes Assembled Instruction / Section
Load Header: $01 $08 ($0801) · Entry Point: $080D (SYS 2061) Cross-check timing in Opcode & Cycle Counter →

Multi-Pass 6502 & Z80 Assembly, BASIC Autostart Stubs & .PRG / .TAP Binary Formats

  • Two-Pass Symbol Resolution & Zero-Page Optimization: In Pass 1, the cross-assembler evaluates .equ / = constants, tracks the Program Counter (.org / * =), and records the 16-bit address of every label while sizing operands (automatically selecting 2-byte Zero-Page opcodes on MOS 6502/6510 when an address is $00–$FF). In Pass 2, forward-referenced labels, low/high byte operators (#<label and #>label), and signed 8-bit relative branch offsets (-128..+127 bytes for 6502 BNE/BEQ or Z80 JR/DJNZ) are emitted into machine code.
  • Commodore .PRG Headers & 10 SYS Autostart Stubs: A native Commodore 64 or VIC-20 .PRG binary starts with a 2-byte Little-Endian load address. When Prepend BASIC 10 SYS Autostart Stub is enabled, the assembler prepends a 12-byte tokenized BASIC line at $0801 (C64) or $1001 (VIC-20) containing 10 SYS 2061 (token $9E) so your machine code at $080D (or $100D) launches automatically with RUN in VICE or on real hardware via SD2IEC / Ultimate-II+.
  • Sinclair ZX Spectrum .TAP CODE Blocks: On the ZX Spectrum, the assembler packages your Z80 machine code into a standard .TAP tape image consisting of a 19-byte Header Block (Flag $00, Block Type $03 CODE, 10-character filename, byte length, .org start address e.g. $8000 / 32768, and XOR checksum) followed by the Data Block (Flag $FF, Z80 machine code bytes, and XOR parity byte), ready for LOAD "" CODE : RANDOMIZE USR 32768.

Comments (0)

No comments yet. Be the first to share your thoughts on this tool!

Leave a Comment

Theme Palette

Default Dark
High-contrast dark
Amber Terminal
Monochrome amber
Matrix CRT
Phosphor green
Workbench Light
Clean light mode

Audio & Display

Relay Click Sounds Web Audio API — soft mechanical clicks
CRT Scanline & Flicker Pure CSS overlay effect

System Info

Customization Panel Theme preference, audio FX, and CRT overlay settings are saved to your browser's localStorage and persist between visits. No cookies or server-side storage is used.
Keyboard Shortcuts Press Esc to close this panel. Use the header moon/sun icon to cycle themes.