The original Doom engine on the M-VAVE FM-1, based on
Doomgeneric pinned at
dcb7a8dbc7a16ce3dda29382ac9aae9d77d21284 under GPL-2.0.
| Title menu | E1M1 gameplay |
|---|---|
![]() |
![]() |
These are 240×240 desktop-host renders from the pinned Doom shareware data, not hardware captures. The IWAD and converted game assets are not included; the screenshot artwork is from Doom by id Software.
The full local shareware pipeline at Doom repo commit
15510abb4015aca652cf1673000e784e88be3121 produced a 567,376-byte plain WL82
UBOOT app.bin, SHA-256
ca1da356db77b36496fde06e6da4e7ccb32b38525241a1a88ef4626bbc7eca39.
Its private manifest reports uboot_app_input_ready_unflashed,
hardware_boot_verified: false and device_operations_performed: false.
This exact candidate has not been flashed or confirmed running on hardware.
Earlier Doom revisions ran on FM-1, but that is not acceptance of this build.
See REPRODUCING.md for the clean-checkout setup, external
FM-1/SDK prerequisites, audited boot-baseline command and the boundary between
producing app.bin and verifying it on the device.
The remote NES FX image d6884aae... completed sector verification and a full
1 MiB readback, but remains blank/frozen after one manual cold start. Offline
audit found a concrete allocator-capacity regression: its maximum reported
used bound is 16 B below usage measured in the previous working image. A
bounded diagnostic-storage correction restores the earlier allocator capacity
in a freshly built private candidate; its page-aware gate passes. Hardware
acceptance remains pending. See the
allocator audit.
The earlier live sound editor from source 626d2612 ran: 565,744 B, app
SHA-256 70553874.... All 139 application sectors and the complete 1 MiB image were
readback-verified. One reset reached DOOM-FM1/1, stage 4/fault 0, advancing
gameplay and audio, and zero LCD/key errors. RAM and emitted USB stack gates
pass; 19,212 B remain in the reviewed app slot. Earlier revisions established
visible gameplay, menus, movement, firing, music and physical master volume.
Physical acceptance of the new controls, speaker output and timing remains
pending. See deployment evidence.
The 2026-10-08 source 783a03d adds the NES port's live filter/Wah effect
as a second control bank. Its 567,344 B application (4f3871be...) has
17,612 B flash margin and passed the former raw startup-reserve check, which
missed the allocator page-growth limit. Its private archive/banks match the
accepted profile. The correction retains both control banks and the existing
engine/audio/task allocations; it limits fatal diagnostic text to 191
characters. Native contracts and offline target gates do not establish boot.
The current scope is E1M1 with its complete original geometry. Gameplay uses all 160×93 rendered samples, scaled to 240×224, with a 16-row HUD. The engine buffer is 160×100. World/enemy assets retain 4×4 pixel blocks, the pistol retains original detail, and the fist uses 2×2 asset blocks. These asset settings differ from screen resolution. The former 8×8 presentation mode and D♯4 view toggle have been removed from the source.
Music defaults to original DOS OPL mode, confirmed for the earlier live editor by read-only telemetry. The eight-voice synth retains its VCO, VCF, VCA and room reverb controls. The new NES FX bank filters the complete music, including OPL drums; PCM gunshots and physical master volume retain their separate paths. Defaults are original OPL, Synth bank and NES FX bypassed. See audio.
An earlier missing cold-boot USB incident was resolved by replacing the programmer cable with a normal USB data cable. Windows then exposed healthy COM5 and a UAC capture endpoint; read-only observation showed advancing gameplay with zero LCD/key errors. That historical cable result does not explain the current remote candidate's startup failure.
The hardware target remains 30 completed gameplay frames/s. Earlier observed builds did not meet that target; the new revision has no completed distinct-frame rate measurement. See performance, bench evidence, deployment history and issue #1.
| Physical note | Stock slot | Doom action |
|---|---|---|
| F3 / G♯3 / G3 / A3 | 14 / 17 / 16 / 18 | Left / forward / backward / right |
| G5 / F5 (far-right white keys) | 40 / 38 | Fire / use |
| F♯3 / B3 | 15 / 20 | Run / strafe modifier |
| A♯3 / C♯4 | 19 / 22 | Menu/back / enter; fire also selects in the menu |
| C4 / D4 | 21 / 23 | Weapons 1 / 2 |
| E4 | 25 | Toggle original OPL / synth music |
These fixed physical-note names come from the recovered stock scanner table; MIDI octave/transposition settings do not change the Doom controls.
The new two-bank controls below describe the unflashed 2026-10-08 source. Turn SELECT one detent (four net contact edges) to switch between Synth (0) and NES FX (1). Each bank retains its own settings. Selecting a bank does not change the OPL/synth music source; E4 remains the source toggle. Returning to Synth bypasses NES FX, retaining its values for the next selection.
In the Synth bank, turn PRESETS to Warm, Acid or Room to enable synth editing. Original selects the DOS OPL path. E4 toggles OPL/synth while retaining the last synth recipe and knob settings. Turning knobs alone preserves the E4 mode choice.
| Physical control | Synth bank assignment | Default / range |
|---|---|---|
| PRESETS | Original, Warm, Acid, Room | Original / 0–3 |
| ALGORITHM | Classic, Triangle, Pulse, Mixed band-pass | Classic / 0–3 |
| KNOB1 | VCO detune | 16 / 0–127 |
| KNOB2 | VCF cutoff, with melodic envelope sweep | 72 / 0–127 |
| KNOB3 | VCA contour; raising it lengthens attack/release | 32 / 0–127 |
| KNOB4 | Small-room reverb wet amount | 0 / 0–127 |
| Physical volume knob | Master music/effects gain through PB6/ADC4 | Follows the knob |
| Physical control | NES FX bank assignment | Default / range |
|---|---|---|
| PRESETS | Dry, Warm, SlowWah, AcidSweep | Dry / 0–3 |
| ALGORITHM | Bypass, low-pass, band-pass, high-pass | Bypass / 0–3 |
| KNOB1 | Filter cutoff | 112 / 80–5,000 Hz |
| KNOB2 | Resonance | 0 / 0–127 |
| KNOB3 | LFO rate | 19 / 0.1–12.8 Hz |
| KNOB4 | LFO depth | 0 / 0–127 |
NES FX presets and algorithm stop at their range ends; Synth selectors wrap. NES FX presets change the filter without selecting a different music source. The physical volume knob remains master gain in both banks.
Warm keeps the existing melodic synth character; Acid raises the filter sweep;
Room softens the filter and lengthens the envelope. Reverb affects the synth
melody; original OPL drums and PCM effects retain their existing paths. Changes
smooth without restarting notes. Read-only DOOM EDIT reports the active bank,
preset/algorithm, its four parameters and actual synth_mode over CDC.
Walking straight from spawn reaches a normal wall; the opening is to the right. Turn right with A3, move with G♯3, then turn left with F3 into the corridor. Turn right farther along toward the first door and press F5 once nearby. Release F5 before using another door. Holding USE continuously does not activate later doors, and repeated presses can reverse an opening door.
The original texture-zero entry is retained so the first door renders properly. The new sound revision partitions the fixed memory into a 294 KiB engine zone plus a 2 KiB room delay. A 1,200-tick 32-bit host route at this budget crossed the door and reached active enemies without allocation failure. Exiting currently reloads E1M1. Whole-level physical acceptance remains open.
git submodule update --init
cmake -S . -B build -G "Visual Studio 17 2022" -A x64
cmake --build build --config Release
ctest --test-dir build -C Release --output-on-failure
.\build\Release\fm1_doom_host.exe C:\path\to\your\IWAD.WAD 120 build\frame.ppm 2Host arguments are IWAD path, engine ticks, output PPM path and optional Doom zone size in MiB (default 6). The runner starts E1M1 without input and disables sound. It produces the video adapter's output locally. Private audio banks and reference fixtures enable the additional music/effects contracts; see AUDIO.md.
The one-command build downloads Debian's doom-wad-shareware 1.9.fixed-5
package, verifies its pinned SHA-256, extracts the local IWAD and Debian
copyright notice, converts the E1M1 assets, then builds the private app.bin:
python tools/build_shareware_app.py --fm1-root F:\dev\fm1Debian lists the doom-wad-shareware package as non-free; its copyright record identifies id Software's data and records its shareware terms. To use an IWAD you already have, pass --wad C:\path\to\doom1.wad. All downloads, extracted data, converted assets and the resulting app are written below ignored build/shareware-rom/; they are not part of this repository's GPL-2.0 source license and must not be committed.
The result is the plain WL82 UBOOT app.bin for the writer's -app option,
not a complete raw-flash dump. The script does not contact a writer or flash a
device. Its manifest records the source and app hashes. Use a fresh directory
with --output-dir build\shareware-rom-run2 for another build.
Supply a lawful original Doom shareware IWAD locally:
python tools/convert_shareware_wad.py C:\path\to\doom1.wadThe public converter runs the individual staging, FMD1, sound, music and
GENMIDI tools for the current E1M1 profile. It writes the archive, generated
banks and hash manifest under ignored build/shareware-e1m1/. Choose a fresh
output directory when converting again:
python tools/convert_shareware_wad.py C:\path\to\doom1.wad --output-dir build\shareware-e1m1-run2These generated game-data files stay local and must not be committed. The
underlying stage_wad.py, pack_archive.py and bank converters remain
available for individual conversion steps.
The staged WAD keeps original image menus and map geometry. Its zero-length
music marker saves WAD-cache space; playback uses the separate immutable score.
Lossless patch-column/payload sharing and patch-index compaction preserve the
decoded graphics. Regenerate from the original IWAD: an older pruned archive
may already have lost AASTINKY and WALL00_3, needed to retain texture index
zero and keep BIGDOOR2 nonzero. The tested profile is 553,048 B as a WAD and
170,636 B as a 4 KiB-cache FMD1 archive. Sizes depend on the input. The
conversion manifest records the exact source and output hashes.
FMD1 is a compressed virtual WAD format. For host IWAD discovery, copy the
archive to a local doom1.wad; the reader recognizes its format. The Windows
runner needs zlib1.dll on PATH, such as Git for Windows supplies.
Copy-Item build\shareware-e1m1\e1m1-4k.fmd build\doom1.wad
.\build\Release\fm1_doom_host.exe build\doom1.wad 120 build\e1m1.ppm 2
python tools/pack_archive.py build\shareware-e1m1\e1m1-4k.fmd build\restored.wad --unpackSee low-memory build instructions for the generated 160×100 engine and constrained host runs.
Use the pinned SDK/toolchain through the existing
FM-1 board project:
use codex/4-doom-boot-support at
20800a32d1c17389560f64005c007bc2c6f9444c (companion
PR #5) for the shared scanner,
encoder, LCD, ADC and audio sources. The separate WL82 SDK must be at
e30b1ee375d1f2993fc23bf92c8b99006a6e5f9d, with the Jieli PI32 tools in
C:\JL\pi32\bin. Target builds also require the reviewed local boot baseline
described in TARGET_CANDIDATE.md. The complete clean
checkout and setup sequence is in REPRODUCING.md.
python tools/compile_target_engine.py --fm1-root F:\dev\fm1 --lowres
python tools/compile_target_port.py --fm1-root F:\dev\fm1 --lowres
python tools/build_target_candidate.py build\shareware-e1m1\e1m1-4k.fmd --fm1-root F:\dev\fm1 --sound-bank build\shareware-e1m1\sound-bank\fm1_doom_sound_bank.c --music-bank build\shareware-e1m1\music-original\music_score.c --genmidi-bank build\shareware-e1m1\opl-bank\genmidi_bank.cFor incremental builds on the current bench, the retained accepted archive is
build/fine-assets/audio-door-fixed.fmd (170,636 B, SHA-256 197d7ccf...). Verify
that archive and all private banks against the last accepted manifest before
building. An existing build/menu-ui-4k.fmd was found to be the older 8×8
archive; its filename alone does not identify the current asset profile. The
reproduction commands regenerate assets from the supplied IWAD.
These commands compile/link/package locally. The private app.bin is the plain
WL82 UBOOT input for a writer supporting SDK -app app.bin. The reviewed
V14/v32 application allocation is 584,956 B. The installed 565,744 B image
leaves 19,212 B; the unflashed NES FX candidate is 567,344 B with 17,612 B
remaining. Preserve the 4,096 B reviewed startup reserve and emitted USB
stack gate. SDK aggregate heap_free is not the largest free block.
See candidate format and gates and
port audit.
This public repository distributes source and build tools. Supply lawful game
assets separately, such as the Doom shareware WAD or Freedoom; the selected
small target profile is measured against original shareware E1M1. Proprietary
WADs, generated original music/effect banks, stock firmware dumps, device keys,
private bench receipts and flashable images remain excluded. Generated game
data and binaries belong in ignored build/.
The port converts the indexed framebuffer into eight-row RGB565 LCD strips,
feeds stock-scanner key edges to Doomgeneric, and exposes a checked FMD1 virtual
WAD reader backed by a bounded decode cache. Shared board support owns LCD,
scanner, ADC and IIS integration. USB provides CDC and capture-only UAC1 at
44.1 kHz stereo PCM16, tapped before physical master gain. Diagnostics include
DOOM AUDIO, DOOM VOLUME, DOOM USB_AUDIO, DOOM GAME and frame capture;
see audio diagnostics.

