Retro File Utilities — .D64 Parser, 6502 Disassembler & BIN Patcher

Client-side Commodore 64 .D64 disk image parser, MOS 6502/6510 disassembler with IC register detection, and ROM binary patcher compiled to WebAssembly via Rust

Retro File Utilities — .D64 Parser, 6502 Disassembler & BIN Patcher

100% client-side Commodore 1541 disk image inspection with interactive 35-track radial disc geometry, MOS 6502/6510 disassembly with automatic IC pinout cross-linking, and ROM binary patching compiled to WebAssembly via Rust.

INITIALISING WASM CORE...

Commodore 64 .D64 BAM, Directory & 35-Track Disc Visualizer

Parse 35-track or 40-track Commodore 1541 disk images in Wasm linear memory, visualize radial sector geometry & file block chains, and extract or disassemble .PRG files directly.

Drop a Commodore 64 .D64 Disk Image Here or Click to Browse
Supports 35-track (174,848 B), 35-track + GCR error table (175,531 B), and 40-track (196,608 B) images — 100% browser-native
Disk Header Name
-
Disk ID / DOS
-
Sector Allocation
-
Image IEEE CRC32
-
35-Track 1541 Disc Surface
Track 18, Sector 02: Directory / BAM Track 18
Owner: DOS 2.6 BAMHover or click any sector
0: Free (BAM) 1: Used (File) 2: Track 18 Dir/BAM 3: Corrupted / Read Error Active File Chain Trace

Directory Listing (Hover or Click Any File to Trace Sectors)

BlkFilename (PETSCII)TypeStartAddr & SizeActions
Active File Block Trace: Click or hover a file or sector
Hover or click any directory entry above — or click any allocated sector on the 35-track disc map — to inspect its exact Track/Sector head-seek chain.

Block Availability Map (BAM) — Hover or Click Any Track to Highlight on Disc

Raw Sector Hex Inspector: Track 18, Sector 0


                    

MOS 6502 / 6510 Disassembler & Side-by-Side Hex View

Decode raw machine code or C64 .PRG files with automatic detection of hardware registers ($0001 6510 Port, $D000 VIC-II, $D400 SID, $DC00 CIA, $A000/$E000 PLA & KERNAL).

Drop a .PRG, .BIN, or .ROM File to Disassemble
.PRG files automatically set the 2-byte little-endian 6502 load address
Origin Address
$0801
Slice Length
0 bytes
Decoded Instructions
0 ops
Slice CRC32
-

6502 / 6510 Instruction Stream

Synchronized Hex & ASCII Dump


                    

.BIN / ROM Binary Patcher & Checksum Verifier

Modify byte buffers in WebAssembly linear memory, verify IEEE 802.3 CRC32 and 16-bit modular ROM checksums, and download patched binaries.

Drop a .BIN, .ROM, or .PRG Image to Verify & Patch
Instant Wasm CRC32, 16-bit modular checksum, and in-place byte patching
Buffer Size
-
Wasm IEEE CRC32
-
Checksum16 / XOR
-
Verification Status
-

Live Patched Hex Buffer


                    

Patch Audit Log


                    

Detected Hardware & IC Pinout Cross-Links

Contextual cross-links generated automatically whenever a specific chip (6510, PLA, VIC-II, SID, CIA, Colour SRAM) or memory region is identified in your active binary or disassembly:

0 ICs linked

How the Rust/WebAssembly Retro File Workbench Works

Every utility on this page executes 100% inside your browser using a compiled WebAssembly (.wasm) binary built from Rust. Whether you drop a 174,848-byte Commodore 1541 .D64 floppy disk image, a 6502/6510 .PRG executable, or an 8 KB KERNAL .ROM dump, your files never leave your machine.

1. Commodore 1541 .D64 BAM & Directory Parsing

A standard 35-track Commodore 1541 disk stores 683 sectors of 256 bytes across four speed zones: tracks 1–17 hold 21 sectors per track, tracks 18–24 hold 19, tracks 25–30 hold 18, and tracks 31–35 hold 17. Track 18 is reserved for the directory and Block Availability Map (BAM). Sector 0 of Track 18 contains the 4-byte per-track allocation bitmaps, the 16-character PETSCII disk name ($90–$9F), the 2-byte disk ID ($A2–$A3), and the DOS version indicator (2A). Sector 1 begins the linked list of 32-byte directory entries, each pointing to the starting track and sector of a .PRG, .SEQ, .USR, or .REL file.

2. MOS 6502 / 6510 Disassembly & Smart Hardware Cross-Linking

When disassembling 6502 or 6510 machine code, the disassembler inspects every target address in Zero Page, Absolute, Indexed, and Indirect instructions and cross-references it against the Commodore 64 memory map:

  • $0000–$0001 (MOS 6510 CPU Port): Controls the Data Direction Register and the LORAM, HIRAM, and CHAREN bank-switching lines feeding the 82S100 PLA.
  • $D000–$D3FF (MOS 6567/6569 VIC-II): Sprite coordinates, raster line counter ($D012), screen control registers ($D011/$D016), memory pointers ($D018), and border/background colours ($D020/$D021).
  • $D400–$D7FF (MOS 6581 / 8580 SID): Three-voice frequency, pulse-width, waveform/gate control, ADSR envelopes, multi-mode filter cutoff, and master volume ($D418).
  • $D800–$DBFF (2114 Colour SRAM): 1K×4-bit static colour nybbles mapped to the 40×25 screen matrix.
  • $DC00–$DDFF (MOS 6526 CIA #1 & #2): Keyboard matrix scanning, DB9 joystick ports, interval timers, VIC-II 16 KB bank selection, and the 6-pin DIN IEC serial bus.

3. ROM / BIN Patching & Checksum Verification

When burning replacement EPROMs (such as a 27C64 in a 2364 socket adapter for a C64 KERNAL or diagnostic cartridge), verifying the exact IEEE 802.3 CRC32 and 16-bit modular checksum prevents booting a corrupted image. Use the patcher to apply NOP slides (EA EA), trainer pokes, or fast-loader patches in Wasm memory and download the verified binary immediately.

Extracted a 10,003-byte Koala Painter .PRG/.KOA screen from a .D64 disk image or dumped an 8×8 character generator EPROM (901225-01)? Drop the binary directly into our Retro Graphics & Screen Viewer / Converter to preview it with Colodore VIC-II or ZX Spectrum ULA palettes and export a pixel-exact PNG, inspect 64 KB bank switching in the Cross-Architecture Visual Memory Mapper & Address Decoder, or convert legacy BASIC programs into 6502/Z80 assembly and tokenized .PRG binaries using the BASIC-to-Assembly Code Translator & Line Number Stripper.

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.