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 (#<labeland#>label), and signed 8-bit relative branch offsets (-128..+127bytes for 6502BNE/BEQor Z80JR/DJNZ) are emitted into machine code. - Commodore
.PRGHeaders &10 SYSAutostart Stubs: A native Commodore 64 or VIC-20.PRGbinary 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) containing10 SYS 2061(token$9E) so your machine code at$080D(or$100D) launches automatically withRUNin VICE or on real hardware via SD2IEC / Ultimate-II+. - Sinclair ZX Spectrum
.TAPCODE Blocks: On the ZX Spectrum, the assembler packages your Z80 machine code into a standard.TAPtape image consisting of a 19-byte Header Block (Flag$00, Block Type$03CODE, 10-character filename, byte length,.orgstart address e.g.$8000/32768, and XOR checksum) followed by the Data Block (Flag$FF, Z80 machine code bytes, and XOR parity byte), ready forLOAD "" CODE : RANDOMIZE USR 32768.
Comments (0)
No comments yet. Be the first to share your thoughts on this tool!
Leave a Comment