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.
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:
| Program | Machine | Open in viewer | Original source |
|---|---|---|---|
| Cursed Chambers | Sharp MZ-80K | View BASIC | MZ-Archive |
| Connect Four | Sharp MZ-700 | View Z80 disassembly | MZ-Archive |
| Hitch Hiker (Simon Lane) | Sinclair ZX81 | View BASIC | zx81-utils |
| Castle Adventure | Sinclair ZX81 | View BASIC | ZX81 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:
url=gives the address of the file to load. The server it comes from must allow cross-origin requests..zipfiles are unpacked automatically.mode=sets how to show it.
| Viewer | Mode | Shows |
|---|---|---|
| MZF Viewer | SP | BASIC listing using the SP-5025 family of BASIC tokens (MZ-80K) |
SA | BASIC listing using SA-5510 tokens (MZ-80K) | |
1Z | BASIC listing using 1Z-013B tokens (MZ-700) | |
Z80 | Z80 disassembly of the program body | |
DUMP | Raw hex and character dump | |
| ZX Viewer | ZX80 | BASIC listing using ZX80 tokens |
ZX81 | BASIC listing using ZX81 tokens | |
Z80 | Z80 disassembly | |
DUMP | Raw 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
- sharpmz.no has Sharp MZ history, manuals and software
- MZ-Archive is a large archive of Sharp MZ software
- ZX80 Operating Manual documents the ZX80 BASIC format
- Sinclair BASIC tokenized file describes the ZX81 BASIC format
- ZX81 Utils, command-line tools for ZX81 files
- Detokenisers, BASIC detokenisers for many 8-bit machines
- Z80 opcode reference chart

