The objective was not simply to display a Wang boot screen. It was to preserve a complete, usable computing experience: authentic firmware, original software, disk changes, and a private working copy for every visitor.
Starting with the physical machine

The working browser profile represents the project's PCXC5-3. It uses recovered R3 motherboard firmware and R12 Winchester controller firmware, an MVC monochrome display, 128 KB of emulated RAM, floppy drive A, and an ST-225 Winchester at C. The ROM displays REV. 2.50; that firmware revision is separate from the website's 2.1.0 release number.
On the 9521-R3 board, the paired Texas Instruments TMS2764 devices are marked 0000 R3 and 0001 R3. The original labels and socket locations were documented before the chips were removed for read-only imaging with the T48 programmer.
The two mainboard EPROMs were each read three times. The preservation workflow verifies the repeated reads and keeps the originals unchanged. Each chip supplies an 8 KB byte lane; together they form the 16 KB firmware region mapped at physical addresses FC000–FFFFF. MAME's existing lane mapping was retained, and R3 was added as a selectable BIOS rather than replacing R2.


Reset tracing confirmed execution of the firmware's reset path and the first hardware accesses. A visible boot banner was useful evidence, but it was only the first milestone: it did not prove the keyboard, disk subsystem, or operating system worked.
The other physical machines have separate profiles. PC-S1-2 has A and C; PC-S2-2 has A and B. Their profiles remain unavailable until their own ROM dumps and hardware inventories are obtained. The current RAM, display, and expansion configuration also remains subject to comparison with the physical PCXC5-3.
Making the keyboard speak Wang

The original keyboard's internal firmware was not available as a usable dump. A separate high-level keyboard device was therefore added, leaving MAME's original MCU-based machine configuration available.
The device speaks the Wang serial protocol at 62,500 baud, with eight data bits and two stop bits. It handles key make/break events, release reporting, typematic behavior, reset, identification, last-key resend, LED commands, and volume state. Protocol information from number42net's Wang keyboard adapter helped establish the interface; its implementation was not copied.
This had to work beyond the power-on keyboard test. Automated input entered the date and time, selected the DOS command processor, and executed VER and mixed-case ECHO commands. Insert maps to Wang EXECUTE, while Enter remains RETURN. The web page also provides Execute and Cancel buttons.
The keyboard is still an approximation of the original device. Click/beep synthesis and DIP-switch query command 0E are not implemented, and every special-key mode has not been exhaustively tested.
Giving the Winchester the right identity


The owner's Winchester EPROM reads were checked for agreement before being added as selectable R12 controller firmware. The controller BIOS selection is separate from the mainboard BIOS selection.
A blank ST-225 image also needed the layout expected by the emulated Wang controller. The backing CHD has 615 cylinders, four heads, 32 physical sectors per track, and 256 bytes per sector: 20,152,320 logical bytes. A generic PC hard-disk image with 512-byte sectors would not describe that layout correctly.
The driver previously returned its existing 10 MB drive identity. A narrow change makes it report the 20 MB identity for the exact ST-225 geometry. R12's table addresses 612 of the 615 backing cylinders; the reason for that difference has not been established.
The browser offers three starting copies: a ready-to-use Wang System 2.01 installation, an initialized empty disk for OS installation, and an uninitialized disk for running INITW from the Winchester Utilities disk. Frozen templates are used for these choices and for testing. The owner's live desktop Winchester is not a test fixture.
The disk lever mattered
A disk change is not just a new image file: the emulated controller must deliver the hardware notification DOS expects.
One of the most revealing integration bugs appeared during live floppy changes. The emulator accepted a replacement image, but DOS did not reliably recognize it. On physical hardware, a door or lever switch signals that media has changed; the emulated machine needed to reproduce the corresponding status and interrupt behavior.
MAME already latched the Wang door-disturbed bits on image load and unload and raised shared IRQ2. Two details broke the notification path. First, PPI port B bit 6 reported the floppy controller interrupt but omitted the door-disturbed latches. DOS received an interrupt without seeing the expected floppy source in its dispatcher. Second, acknowledging the door latch did not recompute the shared interrupt line, allowing IRQ2 to remain asserted.
The fix included the door latches in the status bit and recomputed IRQ2 after acknowledgement. No guest RAM cache was patched and no artificial disk-change timer was introduced. The pending change remains latched until the guest acknowledges it.
Regression tests checked insertion, ejection, direct replacement, and both drives pending at once. Real DOS directory tests then changed from one disk's files to another's and back again, with keyboard input remaining responsive.
A separate single-floppy issue required distinguishing an absent B drive from an installed drive with an open door. Correcting those status bits removed a false drive-B recalibration warning during POST without modifying ROM bytes.
Why the library now prefers MFI
Recovered sector IMG files are compact and convenient, but a sector image cannot carry all the track-level information in a flux capture. Some recovered IMGs also have unusual sizes or layouts that MAME does not accept. Successfully downloading such a file does not establish that it can be mounted.
The archive's SCP captures are converted locally using HxC Floppy Emulator's MAME_MFI exporter. MFI is a MAME floppy-image format. It provides an emulator-friendly representation of track data, but it is not a substitute for preserving the original SCP. Conversion can retain source errors or introduce interpretation choices; it does not repair missing data automatically.
The working geometry also matters. Some 40-track disks were captured using 80-track stepping, producing 80–84 captured positions. The working MFI represents these as half-track positions on the 40-track drive. This preserves captured positions rather than deleting alternate tracks. It assumes a 40-track source disk captured at that stepping; a genuinely 80-track disk needs another configuration. A loader bounds check rejects incompatible geometry safely.
The full batch processed 196 intake and validation captures. Of those, 168 converted successfully and 28 failed in HxC. The successful conversions produced 96 distinct output hashes; every distinct output has a passing browser-MAME mount result. Identical outputs share hash-based test evidence. A mount result proves acceptance by the emulator, not a complete filesystem or successful boot.
There is stronger evidence for selected images. WANG001's SCP-derived MFI was read in Wang DOS as the PCDB TRAIN volume, listing REALTY.DB; its sector IMG had previously been rejected. The four native System 2.01 reference MFIs passed byte-identical MFI-to-IMG round trips and mount tests, and the first system MFI booted from A.
The interface therefore defaults A and B to MFI, while retaining IMG alternatives for comparison. Changing the format filter does not eject the current disk. Intake and independent validation reads remain separate library choices. “Emulator native” identifies the system reference disks; it is not a claim about their physical preservation history.
Bootability is tracked separately. WANG025 and WANG044 are marked bootable on the owner's confirmation, while the first native system disk has an emulator boot test. Other images become available for insertion after startup, allowing investigation without presenting every captured disk as a boot disk.
Moving MAME into the browser

The web runtime is a focused Wang build of MAME 0.289, compiled with Emscripten 6.0.2. The build uses a separate wangweb target so it does not overwrite the native Windows executable. A small bridge exposes keyboard input, floppy insertion, pause, reset, error reporting, and disk flushing to the page.
Windows build setup needed short paths for the SDK and compiler cache. The workspace sits under a OneDrive path containing spaces, and Emscripten's internal relative-path handling also required the short SDK path and cache to remain on the same drive.
An early web version ran at roughly half speed. Its browser loop assumed every animation callback represented 1/60 second. When callbacks arrived near 30 per second, the guest advanced too slowly. The loop now advances by elapsed real time, with long gaps capped at 100 milliseconds to prevent a background tab from replaying a large backlog. Tests measured guest-to-wall-time ratios near 1.00 at the default cadence and requested 30- and 120-callback cadences. Visitor hardware can still limit performance.
Keyboard focus needed its own fix. SDL is configured to receive keyboard events from the Wang canvas, allowing users to type in the disk-library search while the guest continues running.
Private sessions and persistent disks
Every page creates its own MAME instance and writable filesystem. Downloaded starting images are copied into that session. Guest writes do not alter the public R2 files or another visitor's disks.
Saving commits floppy track changes before copying disk and configuration files into IndexedDB. This required a source correction to retain the loaded floppy format pointer used during saving. Restoring starts an independent machine from the saved disks; it is disk persistence, not a saved CPU execution state.
Browser storage belongs to the browser and site origin. Clearing site data removes those local saves. Verification included two concurrent isolated instances, actual DOS file creation, and restoration retaining the written file.
Hosting the machine and its media
Cloudflare Pages serves the interface, profiles, and loader. The approximately 31.56 MB WebAssembly runtime exceeds Pages' 25 MiB individual-file limit, so R2 serves it from a hash-versioned URL. R2 also holds disk derivatives, downloaded only when needed and checked against SHA-256 values before insertion.
The new MFI paths are emulator/mfi/v1/intake/ and emulator/mfi/v1/validation/. Existing IMG downloads remain under software/img/. Original SCP captures stay local. The emulator offers both derived formats, while the main software-download page continues offering sector IMGs.
The release packager produces matching Pages and R2 bundles, checksums, CORS configuration, and manual upload instructions. R2 objects must be uploaded before deploying the catalog that references them. Correct HTTP responses, cross-origin permissions, file integrity, mount acceptance, directory readability, and boot success are separate checks.
What remains to be investigated
The result is a usable PCXC5-3 browser prototype with real firmware execution, keyboard input, Winchester starting states, live disk changes, and a growing software library. It is not yet a component-for-component verified reconstruction of all three physical machines.
The PC-S1-2 and PC-S2-2 need their own firmware and inventories. The Winchester sequencing PROM remains marked NO_DUMP. Keyboard sound and one protocol query remain incomplete. Failed conversions need investigation, and most library images still need software-level testing. A readable directory is valuable evidence, but it does not establish that an entire application works.
The preservation workflow keeps those distinctions visible: originals, derivatives, conversion results, mount tests, boot confirmations, and application findings are recorded separately. Visitors can explore the recovered software while helping identify what still needs attention.
Source, licenses and rights
Source and license information updated 30 October 2026. The engineering report above describes its dated test milestone; the source manifest identifies the newer browser frontend and the matching emulator runtime.
Modified MAME emulator: GPL-2.0-or-later
This browser emulator uses a modified version of MAME, copyright © 1997–2026 MAMEdev and contributors. MAME as a whole is free software under the GNU General Public License, version 2 or, at your option, any later version. Individual files retain the licenses and copyright notices stated in their headers, including more permissive licenses where applicable.
You may copy, modify and redistribute the GPL-covered program under that license. This page does not add noncommercial-only, research-only or other restrictions to those GPL permissions. The project’s frontend and build-script licensing is documented in the source repository.
- Full GNU GPL version 2 text
- MAME copyright and third-party notices
- Local modifications and source/runtime manifest
- Additional library licenses and notices, including Emscripten, SDL, SDL_ttf, FreeType, HarfBuzz and zlib; their corresponding sources are included in the repository
The linked source snapshot contains the modified MAME source, dependency sources, build controls and instructions. It records browser frontend version 2.3.2, MAME 0.289 and Emscripten 6.0.2. Preserve that snapshot when reproducing the identified runtime; later builds may require a different source revision.
No warranty
The GPL-covered program is provided without warranty to the extent permitted by applicable law, including without implied warranties of merchantability or fitness for a particular purpose. See the GPL for its full warranty and liability provisions. This notice does not exclude rights or liabilities that cannot lawfully be excluded.
Firmware, operating systems and recovered media
Wang firmware ROMs, operating systems, applications, disk images, manuals and other archival material are separate works. The emulator’s source-code license does not grant permission to copy or redistribute those works. Ownership of a physical machine or disk, the age of software, and a historical or educational purpose do not by themselves establish public redistribution rights.
Availability through this project is not an additional license grant. Reuse third-party material only as permitted by its applicable license or law, and review any rights information supplied with the individual item. No blanket public-domain, abandonment, fair-use or rights-holder-authorization claim is made here. Project photography and editorial content are not automatically placed under the emulator’s GPL by this notice.
Independent project and trademarks
Save The WANG is an independent preservation project, not an official release of MAME and not an endorsed product of Wang or its successors. MAME is a registered trademark of Gregory Ember. Wang and other product names and marks belong to their respective owners and are used to identify the historical hardware and software discussed. Source-code licenses do not grant trademark rights.
Rights-related concerns
To flag a rights concern or request a private contact route, open a project issue with the affected page or download URL and a brief description of the material. Do not post personal information, confidential documents or sensitive evidence in the public issue tracker. A notice or source-code release alone does not resolve the separate rights to distribute third-party material.
Credits and further reading
- MAME and its contributors: https://www.mamedev.org/
- MAME documentation: https://docs.mamedev.org/
- Emscripten: https://emscripten.org/
- HxC Floppy Emulator: https://github.com/jfdelnero/HxCFloppyEmulator
- Wang keyboard adapter protocol reference: https://github.com/number42net/wang-keyboard-adapter
- Save the Wang preservation project: https://savethewang.org/
This account describes the local project and recorded tests as of release 2.1.0. Conversion and test counts describe this capture batch, not a guarantee of software compatibility.