DEV Community

loach
loach

Posted on

PC Engine CD BIOS Devlog: The Next Observed Blocker Is $2C, Not a Compatibility Milestone

I'm developing oss-pce-cd-bios, an original open-source project aiming toward a PC Engine / TurboGrafx-CD System Card replacement.

In the November 18 update, I described a PUBLIC IPL loader connected to experimental CD services, including a narrowly scoped 2,048-byte READ(6) path.

As of November 26, 2026, the most interesting progress is in finding the next commercial-disc blocker. With a series of opt-in diagnostic return bodies and an extended API-entry observer, a locally authorized trace now reaches candidate slot $2C (EX_IRQON) on one test disc.

This is not a successful retail game boot or proof that the intermediate BIOS services have been implemented correctly. Several of them only save CPU state and return, deliberately skipping the hardware effects a genuine System Card routine may require.

Advancing one observed call at a time

A retail IPL can call a sequence of BIOS functions. Once one missing service causes a halt, the next caller requirement is hidden behind it. To investigate the shape of that sequence without pretending to know the proprietary calling convention, I have been adding isolated preservation-only experimental bodies.

The following PRs are merged into main:

Slot Candidate name Actual experimental scope PR
$4A KEY_BIOS / EX_MEMOPEN Preserve tested CPU state, return #824
$25 EX_SCRMOD Preserve state, return; no screen-mode operation #828
$24 EX_DOTMOD Preserve state, return; no VDC operation #829
$36 EX_SATCLR Preserve state, return; no SAT operation #830
$35 EX_SPRDMA Preserve state, return; no DMA operation #834

The distinction between a service and a scaffold matters. A normal screen or interrupt initialization path may rely on side effects that these bodies intentionally omit. Even a clean return and a matching stack pointer would not establish compatibility.

These bodies are only wired into explicitly requested experimental G5 variants. The ordinary DEV ROM, default unimplemented stubs, proprietary reference-ABI gate, and release path remain separate.

Regressing the seven-call sequence

PR #829 and PR #830 integrated synthetic Geargrafx regressions for the call sequence:

$02 -> $33 -> $4A -> $23 -> $25 -> $24 -> $36
Enter fullscreen mode Exit fullscreen mode

The tests exercise a matrix of 16 experimental combinations and negative cases for incorrect slot wiring, state preservation, and failure boundaries.

PR #834 later added the $35 preservation-only body. Before the next real observation was available, PR #832 used the unimplemented $37 slot as a synthetic stand-in to verify that the harness could identify a subsequent API halt.

That artificial $37 stop was never evidence of a commercial caller. The real next call needed a separate, explicitly authorized media observation.

A nine-call local trace reached $2C

The entry observer originally retained only eight API calls. PR #837 adds a bounded optional capacity of 1–64 calls, leaving the default at eight and recording the number of dropped calls rather than silently presenting a truncated trace as complete.

With that improvement, the project performed an owner-authorized, read-only local observation of experimental configuration ExpE. The sanitized call order for one commercial CUE was:

$02 -> $33 -> $4A -> $23 -> $25
    -> $24 -> $36 -> $35 -> $2C [halt]
Enter fullscreen mode Exit fullscreen mode

The pinned Geargrafx measurements matched across cold and warm runs, and the final $2C entry was observed without call-list truncation.

A second local CUE continued to stop at $1C after the sequence:

$1E -> $4A -> $02 -> $02 -> $21 -> $1C [halt]
Enter fullscreen mode Exit fullscreen mode

The public repository contains only sanitized structural observations; it does not include commercial images, titles, paths, private sector coordinates, or raw payload data.

The result should be described carefully: we identified a new blocker after a sequence of experimental returns. We did not verify the actual semantics of the intermediate retail BIOS calls.

Why $2C / $2D remain unimplemented

The newly observed $2C is the candidate EX_IRQON entry, paired with $2D EX_IRQOFF. Their names and public caller-side material suggest an interrupt-related role, but the details of CPU interrupt masking, interrupt-controller registers, VDC interrupt-enable bits, flags, and preservation requirements cannot safely be inferred from the names alone.

PR #837 documents the $2C evidence and deliberately selects research without an implementation: the genuine ABI remains BLOCKED.

At the November 26 snapshot, PR #839 is open, not merged. It investigates the $2C/$2D pair and introduces an optional VDC-state snapshot strategy designed to avoid the side effects of reading hardware status registers through MMIO. Its focused results are useful research evidence, but they are not a feature of the current main branch, nor a certification of the actual System Card interrupt contract.

There is also accumulated display-initialization debt: skipping the behavior of display-related calls might change the environment in which later calls execute. That limits how far simulated progress can be extrapolated.

Safer development tooling

Separate from BIOS behavior, two merged changes strengthen the development command guard:

  • PR #815 tracks earlier filesystem-changing commands in a shell command sequence, avoiding unsafe assumptions about paths and symlinks in later destructive operations.
  • PR #814 closes several ways of supplying interpreter program text through stdin, including pipelines, redirects, wrappers, shell groups, and fd-0 move/close edge cases.

These are defensive command-policy checks, not an operating-system sandbox.

Status at the November 26 main snapshot

The main branch at d8eda6f9 still reports the same 18/81 project-owned DEV implementations as the previous update. The work described above mostly adds separate experimental variants and stronger evidence, not ordinary DEV service promotions.

Evidence axis Status
Ordinary DEV implementations 18/81
Remaining nonreturning stubs 63/81
Independently verified reference ABI entries 0/81
Reference BIOS JSR entries permitted 0/81
Owner-approved DEV_CALLABLE entries 0
Retail title screen demonstrated No (G5_OBSERVED=false)
Release eligibility false

On paper, an unchanged implementation count can look like a lack of progress. But knowing precisely where a real IPL stops next, separating synthetic returns from actual behavior, and refusing to implement unsupported interrupt semantics are valuable prerequisites for a future compatible BIOS.

The next step is to ground the missing API contracts and display/interrupt initialization behavior in evidence, rather than extending the fake-return chain indefinitely.

Repository: https://github.com/mao2009/oss-pce-cd-bios

Commercial-boot observation tracker: https://github.com/mao2009/oss-pce-cd-bios/issues/802

Research PRs: #837 observer + EX_IRQON · #839 EX_IRQON/IRQOFF pair (open)

This independent project is unaffiliated with NEC, Hudson Soft, Konami, or any other rights holders. It does not distribute proprietary BIOS images, commercial game assets, or extracted copyrighted code.

Top comments (0)