16 KBReconstructed R3 mainboard ROM
196Capture variants processed
168Successful MFI conversions
96Distinct converted hashes mounted

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.

All ROM and disk recovery claims below describe recorded project tests as of release 2.1.0. Emulator acceptance, readable directories, and boot success are reported separately; none automatically guarantees a perfect recovery.

Starting with the physical machine

Two detailed views of the Wang 9521 R3 CPU and memory circuit board
Wang 9521-R3 CPU/memory hardware. Two adjacent board sections are presented side by side from the same archival photograph; the EPROMs are visible in the CPU section.

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.

Original 0000 R3 and 0001 R3 Wang boot EPROMs on the CPU board
The source. Original R3 EPROM pair, before extraction. The labels identify the two 8 KB byte lanes.
Wang 0000 R3 EPROM installed in an XGecu T48 programmer
The capture. EPROM 0000 R3 seated in the XGecu T48 during read-only recovery. Three matching reads were retained for each chip.

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

Intersil IM6402IPL UART in the Wang keyboard serial-interface circuitry
Keyboard serial interface: the Intersil IM6402IPL UART handles serial communication with the keyboard. This is the host-side interface, distinct from the keyboard’s internal firmware controller.

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

Wang Winchester controller R12 EPROM marked 378-9040T12 beside an HM6116P-3 RAM chip
PM029 Winchester controller: R12 EPROM marked 378-9040T12, beside the controller RAM.
Zilog Z8400APS Z80 CPU on the Wang PM029 Winchester controller board
PM029 Winchester controller: Zilog Z8400APS Z80 CPU, shown in the supplied close-up of the controller board.

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

01Image changedInsertion, ejection or swap
02Door latchChange remains pending
03PPI / IRQ2Guest detects the source
04DOS acknowledgesLatch and IRQ update

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

SaveTheWANG website showing a running Wang Professional Computer inside the browser
Running the recovered Wang environment inside the SaveTheWANG browser interface, with machine controls and original DOS software on screen.

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.

Credits and further reading

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.