Doom9500 - Doom for the Nokia 9500 / 9300 (Series 80 v2.0)
Version 1.0, 2026-11-22. Package UID 0x01000A1B.

id Software's Doom (1993) on the Nokia 9500 Communicator: PrBoom 2.2.6 drawing
straight into the 640x200 screen, a software sound mixer, and MP3 music decoded on
the phone while you play. Made to be played with the PlayStation version's sound
effects and music.

Port: Sami Vuori, written together with Claude (Anthropic).


INSTALL
  1. Install Doom9500.sis (to the phone or the memory card). It puts Doom9500 on the
     Desk, and prboom.wad (PrBoom's own data, needed) into \Doom\ on the drive you
     install to.
  2. Copy a Doom game file to \Doom\ on the memory card (D: on the 9500) or to C:\Doom\.
     Any of these works:
       doom1.wad   the shareware episode (free)
       doom.wad    The Ultimate Doom / registered Doom
       doom2.wad   Doom II
     The game files are id Software's and are not included.
  3. Start Doom9500 from the Desk and press Enter.
  Doom9500 looks for the game files in E:\Doom, C:\Doom and D:\Doom.


PLAYSTATION SOUNDS AND MUSIC
  Doom9500 can play any sound pack (a WAD with DS* sound lumps) and any music pack whose
  D_* music lumps are MP3s. The two from the PlayStation version are often called:
    psxsound.wad   the PlayStation sound effects (107 sounds)
    psxmusic.wad   the PlayStation soundtrack by Aubrey Hodges, as MP3 (49 MB)
  They are not included; they aren't hard to find. Copy them to the same \Doom\ folder,
  start Doom9500, press Args and type:
    -file psxsound.wad psxmusic.wad
  then OK. The launcher remembers it (in doomargs.txt on C:, D: and E:).
  Doom's own MUS music is not played (there is no MIDI synth), so without a music pack
  the game is silent apart from the sound effects. Each music track is read into memory
  when a level starts (up to about 2 MB), which makes level loading a little slower.


KEYS
  Arrows / rocker       move and turn
  Rocker middle         fire (Enter in the menus)
  Ctrl                  fire
  Space                 open doors, use switches
  Shift                 run
  Alt                   strafe while held      Chr  strafe on/off
  1-8                   choose a weapon
  Esc                   menu
  Enter                 select in the menus
  Z                     detail: High / Low / Auto (Auto, the default, drops to half the
                        columns when the game gets slow)
  J                     proportions: wide (the default) / correct (true shapes, but you
                        see less up and down)
  Chr + Q W E R T Y U I A S D F = F1..F12 (F2 save, F3 load, F6 quicksave, F9 quickload)
  Settings (prboom.cfg) and saves are written next to the game, in
  \System\Apps\Doom9500\ on the drive it was installed to.


OPTIONS (the launcher's Args button, or a doomargs.txt in D:\, E:\ or C:\; words
separated by spaces; any normal PrBoom option works)
  -file a.wad b.wad   load extra WADs (sound packs, music packs, maps)
  -warp 1 3           start E1M3 (Doom II: -warp 7)
  -skill 4            Ultra-Violence (1-5)
  -nomonsters         no monsters
  -nosound            no sound
  -nomusic            sound effects but no music
  -timedemo demo1     play demo 1 as fast as possible; the result ("Timed ... frames
                      per second") is written to C:\doomlog.txt


NOT INCLUDED
  Multiplayer (no network play), Doom's MIDI music (use an MP3 music pack), the BOOM
  translucency effects (off to save memory and start-up time).


WHERE IT COMES FROM
  Doom9500\    the game. A fork of Doomunicator (CommDoom), the same author's PrBoom
               port for the Nokia 9210, which is in turn based on PrBoom 2.2.6 (GPL)
               and the plumbing of Hannu Viitala and Markus Mertama's CDoom (2001).
    - SDL is gone. epocsys.cpp is the native layer: its own window group at the front,
      the framebuffer's address, depth and pitch from the HAL (16-bit RGB565 on the
      9500; it would still draw 12-bit on a 9210), a 256-entry palette table, the ARM
      blit loops, keys (rocker scan codes 0xaa-0xae, Chr strafe toggle), the clock.
    - Sound: epocaudio.cpp runs CMdaAudioOutputStream in its own thread and pulls
      PrBoom's software mixer (i_sound.c) at 22050 Hz stereo, paced by the clock
      (the 9500's MaoscBufferCopied fires on copy, not on playback). The mixer never
      touches the zone from the audio thread: a finished channel only clears its data
      pointer, and the game thread releases the lump.
    - Music: mp3music.c decodes MP3 lumps with libmad 0.15.1b (fixed point, ARM
      multiply asm) inside the mix call, music first and effects on top, with linear
      resampling to the output rate. libmad's two buffers are owned by mp3music.c, so
      it never allocates in the audio thread. libmad\ is libmad's source with its own
      config.h (FPM_ARM, OPT_SPEED); mad.h picks FPM_ARM on the phone and version.c is
      left out (its object would clash with PrBoom's version.o).
    - From Doomunicator: native 640x200 rendering, ARM assembly for the wall and floor
      loops and FixedMul / FixedDiv / SlopeDiv (r_drawasm.c, bit-exact: the demos stay
      in sync), auto detail (d_main.c), full-screen view with the heads-up overlay, the
      J proportions toggle and the sprite height clip fix (r_main.c, r_things.c), the
      memory diet (MAX_SCREENWIDTH 640, no translucency map).
    - Window server events: EpocVidPollKey takes each completed request's signal with
      User::WaitForRequest (the same fix as in NES9500 and Quake9500).
    - Logging: C:\doomlog.txt only with DOOM_LOG in doomdebug.h; a fatal error
      (I_Error) always writes its message there.
  Launcher\    Doom9500.app: the Desk icon. It starts doom9500.exe and quits, and edits
               the game's options (Args). Icons and masks made by make_masks.py, the
               title by make_title.py (Doom's WINUM digits from doom1.wad).
  data\        prboom.wad from PrBoom 2.2.6 (GPL), packed into the SIS.
  tools\       make_release.py packs the two zips. hostshot: the game built for a PC
               with a stand-in for the phone layer, for screenshots (build.py,
               hoststub.c, takeshots.py). Needs a GCC for Windows; its build copies the
               source and fixes what a modern GCC refuses, without touching the real
               files.


BUILD (on a Windows 2000 VM with the Series 80 v2.0 SDK)
  The project must sit at \Doom9500 on the SDK's drive.
  The game, from \Doom9500\Doom9500\epoc:
    bldmake bldfiles
    abld build armi urel
  (Optional: o2, then abld build armi urel again, rebuilds the renderer and game logic
  at -O2. It was verified with the 9210 SDK, not yet with this one.)
  The launcher, from \Doom9500\Launcher:
    bldmake bldfiles
    abld build armi urel
  The SIS, from \Doom9500\Doom9500\epoc:
    makesis Doom9500.pkg     (Doom9500.pkg is generated from Doom9500.pkg.txt, see
                              its first lines; it takes \Doom9500\data\prboom.wad)
  For a log, uncomment DOOM_LOG in Doom9500\doomdebug.h: C:\doomlog.txt then shows the
  HAL's screen numbers, the audio counters at exit and any keys the game doesn't know.


LICENCE
  Doom9500 is free software under the GNU General Public License, version 2 or later
  (see COPYING), like PrBoom and libmad, which it is built on. If you pass the SIS on,
  pass the source on with it. Doom's game files (doom1.wad, doom.wad, doom2.wad) are id
  Software's, and sound and music packs belong to their owners; none of them are
  covered by the GPL or included.

  Thanks: id Software (Doom, and its source), the PrBoom team, Hannu Viitala and Markus
  Mertama (CDoom), Underbit Technologies (libmad), and Aubrey Hodges for the music.
