Skip to content
All patches

Patches · Doom

Doom · PC-98

Three patches for PC-98 Doom's DOOM.EXE (Imagineer, 1994, 328,050 bytes): a fix for the 86 board's sound blips, a PC-9801-86 music upgrade, and support for John Romero's SIGIL. They change different parts of the file, so they combine. Doom II has its own page: Doom II patches.

Patch files only. This site does not provide game executables, disk images or WAD files. Doom in the compatibility list

Which patches do I need?

All three combine

  • Better music: the music upgrade. It includes the sound blip fix, so you never need both.
  • SIGIL: SIGIL support for DOOM.EXE, plus SIGIL98.WAD made from your SIGIL download.
  • Everything: pick Doom · music upgrade + SIGIL support in the patcher and it does both at once. It accepts the original DOOM.EXE and one with any of the patches already applied.

With an IPS tool, apply the music upgrade IPS and the SIGIL IPS in either order: the patches share no bytes, and every order ends with the same file (SHA-256 2716280cf42956eee82bf0824f6d2ca2ca60ba1f4a60cf181fbecaaf239ed0e5). SIGIL's music then plays with the upgrade's drums and bass too.

Release 02

Sound blip fix

With PC-9801-86 sound effects, Doom now and then plays a loud, high-pitched blip (about 5.5 kHz, a twentieth of a second). It comes from the game's own 86-board driver, not from the core: when its sound interrupt arrives while the previous one is still being serviced, the driver should send a block of silence, but a XOR EAX,80808080h where MOV EAX,80808080h was meant fills the block with whatever was left in EAX. NP2kai plays the same blips. The IPS changes that one byte (35h to B8h). Doom II has the same bug: its fix is on the Doom II page.

  1. Copy the executable off your installed game and check its SHA-256 against the base hash below. IPS does not validate its input, so stop if the hash differs.
  2. Apply the IPS to a copy, check the result hash, and put it back in the game directory.
  3. Other releases: look for the bytes 8B CA 35 80 80 80 80 C1 E9 02 F3 AB and change the 35 to B8. The pattern occurs once in the executable.
Exact input and output hashes
DOOM.EXE · before
SHA-256 09e9ecbe0e78a6f2d5b541a62378fac4d073c31f41be09ea7c485b6bc85e8a3d
CRC32 50d1c71c · MD5 f37491a2976078b03da90b736c072fb0
DOOM.EXE · after
SHA-256 025e26defd549282cb3c4db6436a360ba0e0b0b1db5b69334bdf9f8c7a64f2a3
CRC32 32f168dd · MD5 9787eae245ac755893fc4f06aa36bfab

Verified in NP2kai with a logged 86-board data stream: the unpatched game wrote three garbage blocks in 43 s of play, the patched one none in 2,275 blocks (about 106 s). Found while testing the PC98-486 core, which plays the same data.

Release 03

PC-9801-86 music upgrade

Makes the PC-9801-86 FM music sound like a PC-98 soundtrack. Doom's drums move from FM imitations to the YM2608's built-in rhythm samples (bass drum, snare, toms, hi-hat, cymbal, rim). A new four-operator bass with a dark sub-octave and a punchy attack, plus a small driver change, lets it sit level with the guitars. The IPS includes the sound blip fix above, so apply only this one.

Listen before you patch

Doom · E1M1, before and after

Both recordings play at the same time, lined up to the sample. Flip between Before and After while it plays to hear the drums and bass change in place.

The player needs JavaScript.

Both recordings got exactly the same volume boost (+9.0 dB), so the difference in loudness is the patch's own: the patched music is 5.9 dB louder, which also makes it sound fuller. Tick Match loudness to compare the sound alone.

PC-9801-86

Music upgrade

Rhythm-section drums, new bass for GM programs 32–35, bass level boost, blip fix. Apply to the original DOOM.EXE (328,050 bytes); the patcher also takes one that has the blip fix or SIGIL support.

247 bytes · SHA-256 1496cedf3e026154679aff0ea418385d74084e581459938ecddc4bcd3f372d06

  1. Check the base hash (the same before hash as the blip fix), apply the IPS to a copy and check the result hash below.
  2. Run the game's SETUP.EXE and choose PC-9801-86 as the music device (in DEFAULT.CFG this is snd_musicdevice 3). Keep PC-9801-86 for sound effects.
  3. General MIDI users are unaffected: with music on the MPU-PC98 the upgrade only adds the blip fix.
Result hash and what changes
DOOM.EXE · after
SHA-256 f076967d2fdf83c781358a24c82de5a261d2eadb6feb6f237d742e511b5e10a4
CRC32 c482c545 · MD5 ec7c13d5c6f5a4f1170429b438e7265e

The game carries its own bank of native four-operator OPNA instruments. The patch replaces the bass entries, routes Doom's percussion channel to the rhythm section through a 77-byte routine placed in unused instrument slots, and adds a 35-byte hook to the driver's volume routine that raises the bass carriers by 5.25 dB. Nothing else in the bank changes; guitars and leads are original.

Tuned by ear on a MiSTer running the PC98-486 core and checked in NP2kai renders (no clipping in the bass parts).

Release 06

John Romero's SIGIL on PC-98

PC-98 Doom (Imagineer, 1994) is Infinity's port of Doom v1.2. SIGIL was made for Doom v1.9, and on the PC-98 version it stops the game with P_PlayerInSpecialSector: unknown special 17 the first time you walk into a fire-flicker light, a sector type Doom gained in v1.666. Many of its doors, lifts and switches use the Doom II line types that v1.2 ignores, its music is MIDI (v1.2 plays only MUS), and its texture list names a sky that only The Ultimate Doom has. Two steps fix it: an IPS for DOOM.EXE, and a converter that turns your SIGIL download into SIGIL98.WAD. SIGIL is free from John Romero's site; this site does not host it.

Step 1 · IPS · DOOM.EXE

SIGIL support

Patch DOOM.EXE (328,050 bytes) or your Doom hard-disk image in the patcher. It works on the original DOOM.EXE and on one that already has the blip fix or the music upgrade; the patches can be combined in any order. To get the music upgrade as well in one step, choose music upgrade + SIGIL support.

964 bytes · SHA-256 f38eebca02800c7b478312df7f8a4ada3848461e44165f2d59d1fc9d5594df5e

Step 2 · in your browser

Make SIGIL98.WAD

Drop SIGIL_v1_21.wad (or SIGIL_COMPAT_v1_21.wad). You get SIGIL98.WAD: SIGIL's nine maps as episode 3, its music as MUS, its title, help and intermission pictures. Everything happens on your computer; nothing is uploaded.

Drop the SIGIL WAD here or click to choose it
    Step 2 · offline instead

    Converter script

    The same conversion as the browser (byte for byte), for Python 3 with no extra modules: python sigil98wad.py SIGIL_v1_21.wad SIGIL98.WAD

    Download sigil98wad.py

    SHA-256 f3148795215ba8b6f7395e93d8590f6733dedbaa6d8352c5efca656e75d10670

    Playing

    1. Copy SIGIL98.WAD into the Doom directory, next to DOOM.WAD.
    2. Start DOOM -FILE SIGIL98.WAD and press Enter at DOOM has been modified.
    3. New Game, then the third episode, now called Sigil. DOOM -FILE SIGIL98.WAD -WARP 3 1 starts its first map directly.

    The converted music is for both of PC-98 Doom's music devices: the PC-9801-86 FM board (with or without the music upgrade) and General MIDI. Episodes 1 and 2 are unchanged; SIGIL's title and intermission music replace Doom's while it is loaded.

    What the patch changes
    • Sector type 17, fire flicker, flickers as in Doom v1.666 and later. In v1.2 such a sector kept its type, and standing in one stopped the game. A sector type the engine does not know is now ignored instead of stopping the game.
    • Line types 99–141 from Doom II: blazing doors, lifts and floors, turbo stairs (16-unit steps), switch-operated key doors, the walk-over secret exit, monster-only teleporters and the silent crusher. Blazing doors and lifts move at the normal speed.
    • 256 wall pieces per view, as in Doom v1.9. Doom v1.2 stopped at 128, and in views with many wall pieces, such as the cages at the start of SIGIL's secret level, the rest of the view was never drawn and showed old pictures. Like DOS Doom v1.9, a few very open views can still exceed 256.
    • Boss deaths on E3M8 no longer end SIGIL's last map early (Doom v1.2 ends E2M8 and E3M8 when every Cyberdemon or Spider Mastermind is dead); the level ends at its exit. Doom's own E3M8, Dis, still ends when the Spider Mastermind dies. The SIGIL compat WAD does this with a DEHACKED patch, which PC-98 Doom cannot load.
    • The new code lives in the space of two startup messages: This version of DOOM has been modified now reads DOOM has been modified. Press Enter., and the shareware and piracy notices are left out. Everything else in Doom is unchanged; its own demos play as before.

    The converter puts SIGIL's maps in episode 3 (Doom v1.2 knows three episodes) with their names, music and episode title; converts the MIDI music to MUS; uses SIGIL's classic-height sky (SKY5_ZD) for episode 3 and adds the SKY4 patch SIGIL's texture list names; and leaves out the Doom v1.9 demos, DEHACKED and source-port lumps. Patch source: Doom_PC98_SIGIL_Support.asm (NASM).

    DOOM.EXE · before (original · blip fix · music upgrade)
    09e9ecbe0e78a6f2d5b541a62378fac4d073c31f41be09ea7c485b6bc85e8a3d
    025e26defd549282cb3c4db6436a360ba0e0b0b1db5b69334bdf9f8c7a64f2a3
    f076967d2fdf83c781358a24c82de5a261d2eadb6feb6f237d742e511b5e10a4
    DOOM.EXE · SIGIL support · after
    SHA-256 0394dec24ca3856dddd829b1e027d616af6589eb175d48972333bd860e240454
    CRC32 0aaaa3fb · MD5 4334ca65ffdb24d72ad64250e34db9a8
    DOOM.EXE · blip fix + SIGIL support · after
    SHA-256 617b05d5497dae2978e92cfe05bf16e6c034dcc1243bb24dd2ecc84e3862b50e
    CRC32 688a0c3a · MD5 55bc7b4ad0233a72c600a9cfdef61f55
    DOOM.EXE · music upgrade + SIGIL support · after
    SHA-256 2716280cf42956eee82bf0824f6d2ca2ca60ba1f4a60cf181fbecaaf239ed0e5
    CRC32 9ef9a1a2 · MD5 83468a52f47047d4c601f81fa4bab962
    SIGIL98.WAD from SIGIL_v1_21.wad
    4,464,477 bytes · MD5 aa4edb2d048f196d4c8d0bd79cb05a2b
    Why the patches combine

    The blip fix is one byte in the 86 board's sound-effects driver. The music upgrade changes that same byte, two jumps in the FM music driver, the instrument map, and free slots of the instrument bank: one for the new bass, five for its own code, which no instrument or drum points at. SIGIL support changes game code (line types, sector types, wall pieces, the E3M8 exit) and keeps its own code in the space of the startup messages. No byte is changed by both the music upgrade and SIGIL support, so they apply in either order with the same result. SIGIL's music uses only ordinary instruments, so the upgrade plays it with its drums and bass. The one loss: SIGIL's E3M5 music has nine vibraslap hits, and the rhythm section has no sound for them.

    Tested in NP2kai (PC-9821, 86 board): the unpatched game stops with unknown special 17 when the player walks into E3M1's fire-flicker area; patched, it walks through, and E3M1 runs 26 fire-flicker lights. All nine maps load; the silent crushers and turbo stairs of the secret level, a switch-operated blazing door in E3M7, the title and the episode menu work, the game runs with FM and with General MIDI music (not yet checked by ear), and Doom's own demos play as before. On a MiSTer with the PC98-486 core (B280): SIGIL plays from the hard disk with FM music, and the secret level's opening view draws completely. Not yet played through from start to finish: please report how it runs.