An x86 PC in plain JavaScript.
DOS games, Linux programs and the demoscene's Windows intros, run from their original binaries in this tab. MIRAGE translates x86 machine code into JavaScript source, one basic block at a time, and lets the browser's own JIT compile it — no WebAssembly, no plug-in, no operating system to boot.
bash from Debian 12, id's DOOM and Quake on SVGAlib, XFree86 3.3 on an emulated Cirrus card.
DOSA DOS written in JavaScript, with its BIOS, XMS, EMS and a
DPMI host: drop a .COM or an .EXE on it and it runs at once. DOOM, Heretic, Wolfenstein 3D.
Bare PCBIOS, VGA, disks and CD: boots unmodified operating
systems from an image — Windows 95 to ME, NT 3.51 and 2000, BeOS, Linux, the BSDs, FreeDOS.
Programs come as OASIS images: recipes that fetch a program's files from where their authors published them, and say which machine it needs — like a Docker image, for the PC of 1990.
Benchmarks beside v86, CheerpX, js-dos, DOSBox-X and QEMU → · What each can do →
Windows, with no Windows
Games as they shipped — id's, Epic's, SDL's — and the demoscene's 4K and 1K intros, their Win32 API, DirectDraw, DirectSound, OpenGL and Direct3D 9 written in JavaScript — no Windows, no Microsoft DLL. Their 3D goes to WebGL2 through PRISM. Each one is fetched from where its authors published it when first run. Every screenshot here was taken by MIRAGE itself, and 🔊 sound marks what was heard playing.
Linux, with no kernel
Linux programs as they shipped — id's games on SVGAlib, XFree86 3.3 and Mesa of 1997 — and the demoscene's Linux intros, from 1K to 256 bytes. Linux's system calls are answered in JavaScript. OASIS images fetch their files from Debian's, idgames' and scene.org's own archives, through a small relay of this site; nothing of theirs is copied here. Every image's recipe →
DOS
Games and demos on MIRAGE's own DOS — a BIOS, XMS, EMS and a DPMI host written in JavaScript, no DOS image. Everything here may be redistributed; each card links to its licence and its source.
Loading…
Boot
MIRAGE's bare PC starts disks from its BIOS: a whole FreeDOS disk and boot sectors of 512 bytes, to run here, then operating systems taken to their desktop from their own disks. Those disks are not ours to share, so they are screenshots — taken by MIRAGE itself — and the button opens the bare PC set up for that system: boot your own copy, nothing is uploaded.
Screenshots of Microsoft products used with permission from Microsoft. Windows is a trademark of the Microsoft group of companies; MIRAGE is not affiliated with or endorsed by Microsoft.
More
Bring your own
Drop a .COM, an .EXE or a folder on the DOS player, or boot a
floppy, disk or CD image on the bare PC. Nothing leaves your browser. MIRAGE ships
no system or game from anyone else: use what you may.
What it runs
Windows 3.0 to ME, NT 3.51 and 2000 to the desktop, BeOS 5, Linux 2.2 and 2.4, the BSDs, FreeDOS; Linux programs from 1994 to today; DOS games with XMS, EMS and DPMI. Not yet: Windows XP and later, ReactOS, Haiku, networking, 64-bit. Every title, dated →
Checked, not assumed
CPU test vectors and test386; probe programs run unchanged on QEMU and MIRAGE; screens compared pixel for pixel with QEMU, DOSBox-X and v86; Linux programs against Docker. How it is tested →