Skip to content
ParkerrDevPublic

About

Holy Emulator (HEMU): an x86-64 emulator written in HolyC and compiled to WebAssembly. Powers TempleOS-Web.

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Repository files navigation

HEMU — TempleOS font, sword and scales

HEMU

A TempleOS machine for the browser and Linux. The emulator is HolyC; HolyC-wasm owns its browser host. Resume the V5.03 desktop through a HolyC x86-64 emulator or a native KVM host.

Try it in TempleOS-Web →


Run in a browser

With Node.js 22.19 or later, run from this checkout:

while read dir url sha; do git clone -q "$url" "$dir" && git -C "$dir" checkout -q "$sha"; done <Siblings.txt
npm install --prefix holyc-wasm/Apps/HEMU
sh Misc/Build.sh
sh Misc/Serve.sh

Open the local URL printed by the server. This standalone desktop uses the same engine as TempleOS-Web, with automatic C: storage in the browser.

Browser runtime


Run on Linux

The native host needs x86-64 Linux, KVM, Wayland, a C compiler, Python 3 and ALSA development headers.

Linux/make_hemu

This builds and installs HEMU under ~/.local/share/HEMU, adds a TempleOS launcher and, under Hyprland, installs Super+Alt+T. Disk writes in this Linux host are discarded when it exits.

Installation, removal and native host details


Machine and limits

The captured desktop already contains the Take Tour question and native display corrections. HEMU restores matching RAM, registers and disk sectors; it does not run the DVD's 16-bit BIOS loader.

The browser engine executes TempleOS machine code with a HolyC CPU/device interpreter and an x86-to-WASM JIT. Web Optimization accelerates selected stock drawing routines by default. Disable it to execute their original guest instructions; both modes keep the instruction-level JIT. It implements the hardware and instructions used by the supported TempleOS workloads, not a general PC.

Architecture and supported behavior · Capture recipe


Development and credits
sh Misc/Test.sh

Checks and coverage · Host interface · HolyC-wasm compiler

TempleOS, HolyC, the sword-and-scales artwork and the 8×8 system font were created by Terry A. Davis. TempleOS is public domain. The banner uses its font and artwork.

About

Holy Emulator (HEMU): an x86-64 emulator written in HolyC and compiled to WebAssembly. Powers TempleOS-Web.

Topics

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages