Retro File Viewer

MZF Viewer and ZX Viewer open old tape files in your browser, so you can read the BASIC listing or disassemble the Z80 code.

Last updated

MZF Viewer showing a Sharp MZ BASIC listing
ZX Viewer showing a ZX81 BASIC listing

The two viewers

MZF Viewer: Sharp MZ-80K and MZ-700

MZF Viewer opens .mzf tape images from the Sharp MZ series. It reads the file header and shows you the BASIC program as text, using the right dialect. If the file is machine code, it disassembles the Z80 instead. Want to know what the header bytes mean? My guide Inside the Sharp MZF file goes through them byte by byte.

ZX Viewer: Sinclair ZX80 and ZX81

ZX Viewer does the same for Sinclair's first two computers. It turns ZX80 and ZX81 program files back into readable BASIC and disassembles any machine code hidden inside. That's harder than it sounds, because Sinclair used its own character set rather than ASCII. The guide What's in a ZX81 .P file? explains why.

Try it with real programs

These links open a real archived program in the viewer straight away:

ProgramMachineOpen in viewerOriginal source
Cursed ChambersSharp MZ-80KView BASICMZ-Archive
Connect FourSharp MZ-700View Z80 disassemblyMZ-Archive
Hitch Hiker (Simon Lane)Sinclair ZX81View BASICzx81-utils
Castle AdventureSinclair ZX81View BASICZX81 Stuff

For many more ZX81 programs, browse the ZX81 Stuff tape archive.

Linking to a file

Both viewers take two query parameters, so you can share a link that opens a particular file in a particular view:

ViewerModeShows
MZF ViewerSPBASIC listing using the SP-5025 family of BASIC tokens (MZ-80K)
SABASIC listing using SA-5510 tokens (MZ-80K)
1ZBASIC listing using 1Z-013B tokens (MZ-700)
Z80Z80 disassembly of the program body
DUMPRaw hex and character dump
ZX ViewerZX80BASIC listing using ZX80 tokens
ZX81BASIC listing using ZX81 tokens
Z80Z80 disassembly
DUMPRaw hex and character dump

The viewers strip the tape header before disassembling, so addresses line up with where the code actually loads in memory. They also convert each machine's character set to a readable ASCII equivalent.

Why I made it

In 1982 I came across a Sharp MZ-80K in a shop in Sheffield. For a sense of the time, see this page from Personal Computer World, November 1982. Decades later I bought one on eBay. I wanted to browse the old BASIC programs without loading every tape on real hardware, so I wrote a tool to read MZF files directly.

The MZ-80K and the ZX80/ZX81 are both Z80 machines from the same era, so extending the tool to Sinclair files was a natural next step. Ryan Gray's zx81-utils documentation helped a lot with the ZX formats.

Source code and issues

I wrote the viewers with help from an AI coding assistant. I designed the tools, checked the output against real files and fixed what it got wrong. The code is open source at github.com/CommanderCoder/mzfviewer. Please report bugs on the issue tracker, or in the comments below.

Useful resources

Reviews & comments

  1. Loading comments…

Leave a review or comment

Every comment is read by me before it appears. Please keep it friendly and on topic. Links and personal details are removed. See the comment policy.

Your rating (optional)