Technology1 min read

Show HN: Win98 PE Interpreter in WebAssembly – StarCraft and Diablo on Phones

By · Published by Everything Blog

In short

The emulator supports DirectDraw and Direct3D titles alongside 16-bit Windows 3.1 programs, bringing retro classics like 3D Pinball Space Cadet, StarCraft, SkiFree, and Winamp to mobile tabs. Mobile users can interact via single taps and utilize on-screen controls for titles that traditionally demand keyboard inputs. Furthermore, application settings, saved games, and scores are preserved locally in the user's browser without external data transmission. The entire effort, complete with reverse-engineering notes and technical implementation articles, is publicly accessible under the MIT license on GitHub.

Key points

  • Programs execute directly inside web browsers by translating guest machine code through a…: Programs execute directly inside web browsers by translating guest machine code through an x86 interpreter written in WebAssembly Text.
  • User data, configurations, and game scores are maintained strictly within local browser s…: User data, configurations, and game scores are maintained strictly within local browser storage.
  • The project documentation and source code are openly available under the permissive MIT l…: The project documentation and source code are openly available under the permissive MIT license on GitHub.

Sources checked by our analysis pipeline: 1

Wine-Assembly: run real Windows 98 apps and games in your browser

Wine-Assembly is a Windows 98 emulator that runs the original, unmodified .exe files in a browser tab: 3D Pinball Space Cadet, SkiFree, Solitaire, FreeCell, Minesweeper, Notepad, Paint, Calculator, Winamp, the Windows Entertainment Pack, DirectDraw and Direct3D games, and 16-bit Windows 3.1 programs.

There is no operating-system image and no source port. An x86 interpreter and a reimplementation of the Win32 API are written directly in WebAssembly Text, and the guest program's machine code runs on them. Nothing is installed and nothing leaves your browser; a program's settings and scores stay in this browser's local storage.

Double-click an icon on the desktop to launch a program. On a phone, one tap opens it and games that need keys get on-screen controls.

- Every program on the desktop, with a page each: Pinball, Solitaire, Winamp, Paint, SkiFree and more

- How it works: articles on the x86 interpreter, lazy flags, real DLLs, software GDI, DirectX and Win16, plus the design docs and reverse-engineering notes

- How Wine-Assembly was built

- Source…

Technology