DEV Community

loach
loach

Posted on

PC Engine CD BIOS Devlog: Passive Reference-Firmware Traces, RUN-Button Hypothesis, and Leaner CI

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

The November 26 update described an explicitly authorized local commercial-disc diagnostic reaching candidate API slot $2C after a sequence of development-only preservation/return stubs.

Since then, the most important work has not been another candidate API. It has been passive reference-firmware observation, stricter evidence accounting, and making a growing GitHub Actions test suite more efficient.

The short version: no commercial game title screen has been observed, and there is still no verified reference ABI. But the project has a clearer picture of what was actually measured, what was not recorded, and what should be tested next.

Passive black-box observation rather than invented returns

Synthetic test discs and temporary RTS substitutions are useful for discovering which call comes next. They cannot establish how the original System Card firmware implements that call.

PR #904 established a passive-observation plan, a path comparison tool, and provisional prioritization across the 81 candidate API entries. That PR provided the observation infrastructure; it did not itself execute proprietary reference firmware or commercial media.

Later work introduced actual reference-firmware observation records and the machinery to interpret them. The goal is to watch execution without modifying the reference firmware, injecting active JSR calls, or publishing proprietary media, paths, hashes, or raw game-derived content.

PR #905 added bounded full-range aggregation, a TABLE-only probe, and support for an observation-budget ceiling of 2 billion steps. That ceiling is an instrument capability, not a claim that 2 billion steps have already been observed.

What a 640-million-step trace can and cannot tell us

PR #906 merged the Wave 1–3 observation canon. The recorded execution budgets included:

Observation budget Steps
Short 20 million
Medium 80 million
Extended 160 million
Longer 320 million
Longest 640 million

The critical issue is the difference between no API-table calls recorded and proof that no API-table calls occurred anywhere.

The record now distinguishes multiple producer generations:

  • Gen1: only the retained TABLE-record window is firm. The portion that was dropped cannot be retrospectively classified as zero.
  • Gen2: a zero result is conditional on the bounded aggregation window, with terminal portions excluded. It does not justify a claim of global zero for the entire execution.
  • Gen3: the enhanced instrument and aggregation mechanism were merged, but the same comparison matrix had not yet been re-observed with Gen3 when the canon was published.

The PHASE evidence and final state did not show additional CD boot progress within the recorded and end-state windows. A long, apparently repetitive execution pattern might suggest spinning, but steady-state spin is still a hypothesis, not a fully proven causal explanation.

This distinction matters more than the raw step count. A long trace with incomplete visibility is not a complete negative result.

Could the game be waiting for RUN?

A possible explanation for the missing progress is that the program expects an ordinary RUN-button input. That is a hypothesis worth testing, not a fact the trace has established.

PR #911, merged on November 30, is a design-only, permission-gated experiment for RUN-button input during genuine firmware observation.

The proposal compares no-input controls against specific input timing, checks synthetic stepping versus free-run behavior, and defines which observed outcome would count as an actual retail title-screen milestone. A synthetic RUN-input guest passed four test cases.

Importantly:

  • The normal API-entry probe does not currently provide that input surface.
  • The PR did not perform a new RUN-enabled genuine-firmware measurement.
  • Executing the actual observation matrix requires explicit Owner approval.
  • A different stop address or an apparently changed frame is not automatically evidence of a title screen.

So the answer is not “pressing RUN fixes the boot.” It is “we now have a falsifiable plan to determine whether RUN matters.”

Keep API surveys distinct from verified contracts

PR #907 reviewed public materials for candidate entries $4A, $02, $1D, $1E, $03, $21, and $23.

The work separates documented caller facts from unresolved register behavior, side effects, error conventions, and genuine ABI requirements. No research-only candidate was promoted into a verified reference API merely because its name or entry address was found.

This remains fundamental to the project: observing an entry point, implementing an invented experimental contract, and verifying the actual System Card ABI are three different evidence levels.

CI work: fewer redundant jobs, better-balanced shards

As the host and pinned Geargrafx suites grew, test execution time became a practical constraint. Several improvements landed in main between November 29 and 30.

PR #897 reduced duplicate host-suite execution from twice to once, while preserving the same test discovery and failure gates. It also cancels stale heavy CI on superseded PR heads (not push-to-main runs), records shard timing, and adds an advisory plan.

PR #898 rebalanced the four real-core shards using an existing measurement. The measured allocation had test times of 252, 100, 129, and 172 seconds; repacking the same measured modules yielded estimated per-shard allocations of 164, 163, 163, and 163 seconds. Those are allocation calculations based on one measured run, not promises about future GitHub runner wall times.

PR #902 introduced exact-match caching of the pinned toolchain across jobs, with the artifact-guard allowance handled separately.

PR #900 added a non-required advisory staging workflow: faster L0–L2 feedback for Draft PRs and full L3 execution for appropriate transitions, without replacing the required checks.

Most recently, PR #910 made the advisory workflow skip unnecessary full-L3 execution for certain normal non-Draft PR events when a SHA-consistent Required superset already covers the work. The skip is deliberately reported as SKIPPED/neutral, not PASSED. Unknown cases fall back to conservative execution.

The primary rule is unchanged: CI speed-ups must not weaken required checks, provenance rules, reference-BIOS gates, or release protections.

Project status on November 30

The current main snapshot inspected for this update was e7a7726293, including the merged RUN-button experiment design.

Metric Current state
Ordinary project-owned DEV implementations 18/81
Nonreturning API stubs 63/81
Independently verified reference BIOS ABI entries 0/81
Permitted reference-firmware JSR entries 0/81
Owner-approved DEV_CALLABLE entries 0
Demonstrated commercial-game title screen No; G5_OBSERVED=false
Firmware release eligibility false

This update does not claim additional implemented ordinary DEV APIs. Its progress is elsewhere: a more honest observation pipeline, explicit boundaries for missing evidence, a testable RUN-input hypothesis, and more efficient CI that retains its safety contract.

The next meaningful result will be a controlled, correctly authorized observation that either demonstrates a new boot-stage transition or eliminates one more hypothesis. Until then, a longer run or a missing TABLE record is not a substitute for evidence.

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

Observation tracker: https://github.com/mao2009/oss-pce-cd-bios/issues/635

Key PRs: #905 full-range observation tooling · #906 observation canon · #911 RUN experiment design · #910 advisory CI optimization

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

Top comments (0)