Repository navigation
B248 - Native PC-9821 BIOS banks and GDC settings
B248 adds the hardware behavior needed by the supplied original NEC PC-9821Ce2 and unknown-model PC-9821 BIOS sets. Use the 75 MHz RBF as the recommended build. OpenBIOS remains the default, paired with the freely licensed 2026-10-08 rebuild.
The full-feature 90 MHz image is supplied in PC98_B248_90MHz_Experimental.zip. It passes DOS and native-BIOS diagnostics but repeatedly faults in Linux. Its cause is not established. B248 lowers the recommended CPU clock from 90 to 75 MHz; no performance gain is claimed. Both builds retain PR2, IC32/DC8, 64 MiB RAM, packed graphics, raw IDE, MIDI UART, JT08 and the native-DDR framebuffer path.
Changes
- Accelerated CPU loads obey segment readability and limits. Unusual or expand-down segments use the complete checks, restoring the general-protection fault expected by native BIOS POST.
- Native software-DIP banks, parity-aware GDC clock readback, ROM bank aliases and shadow-RAM writes are implemented. Change DIP2-8 GDC clock in the OSD, then reset for the BIOS to see it.
- The 063Ch internal bank selector supplies the empty-device POST return expected by these ROMs while preserving underlying RAM. The core does not provide a physical PCI bus.
- Disk boot error messages now say PC98.
Testing your original BIOS
Download PC98_Official_BIOS_Tools_B248.zip for the converter and full instructions. Supply your own matching bios.rom (98,304 bytes), itf.rom (32,768 bytes), font.rom (288,768 bytes), and optional sound.rom (16,384 bytes). The converter produces a 550,912-byte boot.rom without patching the firmware.
Put PC98_Z486_75_B248_20261008.rbf in /media/fat/_Computer/ and the packed ROM in /media/fat/games/PC98/boot.rom, backing up the current ROM first. Return to the MiSTer menu and reload the core; OSD Reset alone does not reload ROM. The ZIP and individual component ROMs are not loaded directly. Start with a known-bootable PC-98 DOS disk and GDC 2.5 MHz. Ce2 is the tested model; other Ce dumps are not automatically equivalent.
Validation
The exact recommended 75 MHz bitstream passes:
- OpenBIOS DOS qualification with plain HIMEM: four division rounds, 4,008 string cases, conventional RAM and 16 MiB XMS with zero errors, plus 512 EGC alignments / 11,904 plane checks.
- Linux fault-restart checks and 100 normal process launches/exits, verified with a fresh guest marker.
- Both original BIOS sets: all 96 KiB of system ROM matched the source checksums; bank-1 POST return, resident-RAM preservation, GDC readback and responsive DOS
DIRpassed with fresh markers.
Doom demo1 completes with plain HIMEM and sound/music/SFX disabled, returning normally to DOS: 11,520 gametics in 1,926 reported realtics (about 816.5 monitored seconds). These PC-98 counter values are not interpreted as absolute FPS.
The three supplied images were checked on the exact 75 MHz build with fresh OpenBIOS: Alone in the Dark 2 responds to menus and renders its opening 3D sequence; Cyberillusion accepts mouse selection of New Game, opens character/name registration and advances its help text; Toushin Toshi II boots its 256-byte-sector HDI directly and responds to Game Start, reaching the hint-mode choice. Player movement in Alone in the Dark 2, audio and complete playthroughs remain unqualified.
All nine OpenBIOS regression groups pass. Native banks, shadows, software-DIP values/parity, DMA readback and ITF command tests pass. Production CPU tests include precise PM16 faults and 236 load-limit cases. The exact PR2/IC32/DC8 profile passes CPU, cache and 64 MiB memory simulations.
Quartus Lite 17.0.2 build 602: recommended 75 MHz, seed 7, 41,405 ALMs / 4,190 LABs, 43,983 registers, 552/553 M10Ks and 67 DSP blocks. Worst slack is -5.660 ns, with four negative timing summaries. Experimental 90 MHz, seed 12: 41,535 ALMs / 4,191 LABs, worst slack -7.628 ns, ten negative summaries. Both fit within the maintainer's accepted 12 ns magnitude allowance; static timing is not closed.
Limits and downloads
Audio and complete playthroughs are unqualified in this release session. Other BIOS sets and all PC-9821 peripherals are not guaranteed. Software-DIP settings survive CPU/OSD reset but are lost on FPGA reload. Hunt's submenu remains unresolved. Previously documented Doom/VCPI and Doom II failures remain.
Windows 95 setup on the exact recommended 75 MHz build reaches the graphical wizard, license, repair/directory preparation, Typical setup choice and OEM Certificate of Authenticity key screen. The disposable DOS image uses HIMEM, explicit TEMP/TMP=A:\TEMP and a 2,048-byte command environment, with original SETUP and cabinet files preserved. A user-supplied OEM product key is required to continue. Windows 95 is not yet installed/running as a desktop; DirectX has not been attempted.
The automatic ZIP/7z bundle uses SD-card-root layout and includes the recommended 75 MHz core, paired OpenBIOS and existing optional MIDI helpers. Extract it to /media/fat; MIDI setup remains optional. The experimental 90 MHz ZIP is a separate download. NEC ROMs, DOS, game disks and soundfonts are not distributed.
Functional core source: 8a569ebe4d59dfd75bb0010734ad65c690be523c; the release tag adds documentation only. BIOS firmware source: 7b9c1fa4bd92d75d2d6a035e06ab7c10ae2d26a9.
SHA-256:
- Recommended 75 MHz RBF:
4bbe73870e8fd2bf2f8b8602f7557fa8f2b2308bb302a54a4ebb5c075c91146d. - Experimental 90 MHz RBF inside its ZIP:
8ca73f521c0ffabb05ffe6162f44ad78d9931790897b1a691d492cae480e58fd. - OpenBIOS
boot.rom:671acbafb4a7baf5ffb69d740ccfd4cf9dc94d840b2b7881a20bf595621fd4f2.