DEV Community

loach
loach

Posted on

PC Engine CD BIOS Devlog: 15 Merged Test PRs and an 81-Slot Safety Net

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

The November 30 update covered passive reference-firmware observation, strict treatment of missing evidence, a permission-gated RUN-button experiment design, and CI optimization.

On December 1, 2026, the emphasis shifted to a different kind of progress: building a regression and safety foundation across the project's 81 candidate BIOS API slots.

Fifteen consecutive test PRs, #991 through #1005, were all merged into main. This does not mean fifteen genuine BIOS services were implemented. Most of this wave is host-only testing of project-defined models, synthetic fixtures, ledgers, and failure classifications. These are not retail-game execution tests.

An 81-slot map is not 81 verified APIs

A BIOS replacement project needs to track different questions independently: which entries are named, which have project-owned development code, which remain fallback stubs, and which have genuine reference-ABI evidence.

PR #992 added host-only checks for the candidate API ledger, reference-JSR execution gate, claims, and DEV implementation state. PR #997 added an 81-slot coverage-map test spanning CD, ADPCM, backup RAM, extended/display, math, and miscellaneous extension areas.

One useful review result was the realization that a test should not pin the current 18 implementations / 63 stubs forever. That would eventually turn a legitimate nineteenth DEV routine into a regression failure.

The revised tests check structural and approval invariants while allowing legitimate future progress. They continue to refuse a forged VERIFIED claim, an unauthorized reference-JSR permission, or a release promotion. A future project-defined DEV implementation is not itself a reason to fail the safety suite.

Boundary checks across CD, ADPCM, BURAM, EX, and math

The wave adds several narrowly scoped suites:

Area Host-only coverage PR
CD Track/LBA edges, invalid value types, missing or unknown media #1005
ADPCM Unverified contract pins, unsupported states, safe negative verdicts #999, #1004
Backup RAM Destructive-format opt-in, missing-file delete, capacity, name constraints and malformed input #1001, #1003
Display/input Development-vs-stub ledger status and argument-domain checks #998
Math Multiplication boundaries, divide-by-zero refusal, square-root and trigonometric properties #1002, #1004
Block transfer TII/TIN/TDD/TIA/TAI address walks, overlapping ranges, protected I/O and MPR/stack balance models #995

For example, the backup-RAM model tests reject a destructive write unless the synthetic model's authorization condition is exactly true, rather than accepting every truthy value. No real backup save data is modified.

For mathematics, some oracles use ordinary arithmetic or mathematical relationships independently of the project's implementation models. Passing those checks is useful, but it cannot establish that the proprietary System Card's register ABI, rounding, or side effects are identical.

Testing whether the test judge itself is too optimistic

Adding test cases is only useful if the verdict logic can reject bad evidence.

PR #996 targets falsely optimistic results: forged PASS records, empty or truncated logs, missing observations, and corrupted metadata. A test is supposed to return FAIL, BLOCKED, UNKNOWN, or NOT_RUN where appropriate, not silently upgrade an incomplete observation to success.

PR #994 checks repeatability on synthetic records: identical inputs should produce the same verdict, a failed step should not poison later tests after explicit reset, and cold/warm observations must remain separately attributable.

PR #991 checks synthetic fixture JSON integrity and unsupported verification claims, while PR #993 adds host regressions around permanent reference-JSR restrictions, unimplemented-entry behavior, and forbidden-area protections.

These are host evidence-handling checks. They do not execute genuine reference-BIOS calls or demonstrate compatible software behavior.

Smaller experimental ROM code and better DEV reproducibility

Alongside the fifteen-PR sweep, PR #988, #989, and #990 added host-only reproduction checks for the project's DEV $1E, $02, and $33 paths and their limited contracts.

ROM space is also an ongoing constraint. PR #934 reduced the MA_SIN routine by 8 bytes using local arithmetic changes. PR #936 saved another 4 bytes across MA_MUL16U and EX_RND. The PR evidence includes regression checks and re-pinned build hashes, with the $E800 boundary protected.

The size savings are valuable to a constrained HuC6280 image, but byte count is not a proxy for compatibility.

Why several new DEV implementation PRs are not counted yet

New branches and PRs also appeared for project-owned routines such as EX_IRQOFF, MA_ATNI, EX_DMAMOD, EX_SETRCR, EX_SETRED, EX_SETDMA, and MA_DIV8U.

At the snapshot used for this article, those PRs were open and not yet merged. Their branch-specific tests do not change main's implementation count. Even after a future merge, a project-defined DEV contract must not be confused with a verified reference-BIOS service.

December 1 status

The main-branch snapshot verified for this article was 9c052176, after PR #1002 merged at approximately 18:00 JST on December 1.

Evidence axis Status
Ordinary project-defined DEV implementations 18/81
Remaining fallback stubs 63/81
Independently VERIFIED reference ABI entries 0/81
Reference BIOS JSR entries permitted 0/81
Owner-approved DEV_CALLABLE entries 0
Commercial-game title screen demonstrated No; G5_OBSERVED=false
Release eligibility false

This update is not about a newly playable commercial game or fifteen completed APIs. It is about making future implementation work more reviewable, reproducible, and resistant to misleading evidence.

The long-term compatibility goal remains unchanged. For now, the project is growing the test foundation needed to distinguish a legitimate new development routine from an unjustified claim about the original System Card BIOS.

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

Selected PRs: #991 fixture integrity, #992 ledgers, #995 transfer/stack, #997 coverage map, #1002 math boundaries.

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

Top comments (0)