<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: loach</title>
    <description>The latest articles on DEV Community by loach (@loach2009).</description>
    <link>https://dev.to/loach2009</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4119133%2F9a7d0107-ed42-4ca8-a57a-d5b67333a4f5.png</url>
      <title>DEV Community: loach</title>
      <link>https://dev.to/loach2009</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/loach2009"/>
    <language>en</language>
    <item>
      <title>Why I Could Not Replace Windows GUI Testing with LiberNT and Wine</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Sat, 05 Dec 2026 23:10:32 +0000</pubDate>
      <link>https://dev.to/loach2009/why-i-could-not-replace-windows-gui-testing-with-libernt-and-wine-32na</link>
      <guid>https://dev.to/loach2009/why-i-could-not-replace-windows-gui-testing-with-libernt-and-wine-32na</guid>
      <description>&lt;h2&gt;
  
  
  Why I tried alternatives
&lt;/h2&gt;

&lt;p&gt;Parallel AI-assisted development can turn Windows GUI test sessions into a scarce shared resource. For a .NET 10 WPF application using Codeer.Friendly, I explored LiberNT under QEMU and Wine under Linux instead of assuming that more Windows instances were the only answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened
&lt;/h2&gt;

&lt;p&gt;The following is a summary of my experiment notes, not a general compatibility matrix. Exact build numbers and reproduction logs are not included.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Check&lt;/th&gt;
&lt;th&gt;LiberNT&lt;/th&gt;
&lt;th&gt;Wine 10&lt;/th&gt;
&lt;th&gt;Wine 11&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;.NET 10 console startup&lt;/td&gt;
&lt;td&gt;Failed&lt;/td&gt;
&lt;td&gt;Passed&lt;/td&gt;
&lt;td&gt;Passed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WPF startup&lt;/td&gt;
&lt;td&gt;Not tested&lt;/td&gt;
&lt;td&gt;Passed&lt;/td&gt;
&lt;td&gt;Failed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Codeer.Friendly&lt;/td&gt;
&lt;td&gt;Not tested&lt;/td&gt;
&lt;td&gt;Communication failed&lt;/td&gt;
&lt;td&gt;Not tested&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A native Win32 application started on LiberNT, but self-contained .NET startup failed. The notes mention error 0x8007007F and investigation of the CopyContext export in KERNEL32. Self-contained deployment does not eliminate OS API dependencies.&lt;/p&gt;

&lt;p&gt;In a Linux setup involving WSL2, Ubuntu, Xvfb and Openbox, Wine 10 could launch the WPF application, but Friendly reported &lt;code&gt;Communication with the application failed&lt;/code&gt;. With Wine 11, the notes record a startup UriFormatException. The underlying causes are not fully established; this does not establish a universal regression in Wine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Launching is not testing
&lt;/h2&gt;

&lt;p&gt;GUI automation also needs process attachment, communication, focus, input, window control and reliable cleanup. A visible window is only the first milestone. A test environment that introduces unrelated failures can make regressions harder to diagnose.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I chose instead
&lt;/h2&gt;

&lt;p&gt;I retained Windows for GUI validation. Ordinary development makes GUI tests opt-in, while high-risk GUI changes require targeted validation. Periodic regression and release validation remain necessary. Untested changes must never be labeled GUI-validated.&lt;/p&gt;

&lt;p&gt;The lesson is to optimize the demand for expensive tests as well as their execution environment. I have not quantified the savings yet.&lt;/p&gt;

&lt;p&gt;Related reading: &lt;a href="https://github.com/mao2009/zenn-articles/blob/main/articles-en/ai-agents-when-to-stop.md" rel="noopener noreferrer"&gt;When to stop AI agents&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>dotnet</category>
      <category>linux</category>
      <category>testing</category>
    </item>
    <item>
      <title>The Overengineering Problem in AI-Driven Development: Teaching AI Agents When to Stop</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Fri, 04 Dec 2026 22:54:22 +0000</pubDate>
      <link>https://dev.to/loach2009/the-overengineering-problem-in-ai-driven-development-teaching-ai-agents-when-to-stop-3i1h</link>
      <guid>https://dev.to/loach2009/the-overengineering-problem-in-ai-driven-development-teaching-ai-agents-when-to-stop-3i1h</guid>
      <description>&lt;h2&gt;
  
  
  The problem is not always insufficient quality
&lt;/h2&gt;

&lt;p&gt;When I use AI coding agents for implementation, testing, code review, and bug fixes, I encounter a problem that is different from poor code quality: agents sometimes continue improving code after the original requirements have been satisfied.&lt;/p&gt;

&lt;p&gt;A small bug fix can become a broad refactoring. A simple feature can acquire abstractions for hypothetical future requirements. Review and correction cycles can continue long after the blocking issues have been resolved.&lt;/p&gt;

&lt;p&gt;AI makes improvements easier to initiate, but that does not make every improvement worth doing.&lt;/p&gt;

&lt;p&gt;We need to teach agents not only how to improve software, but also when to stop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost of unnecessary quality work
&lt;/h2&gt;

&lt;p&gt;Writing code is only one part of software development.&lt;/p&gt;

&lt;p&gt;Every additional change can introduce costs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Model usage and token consumption&lt;/li&gt;
&lt;li&gt;Code exploration and review&lt;/li&gt;
&lt;li&gt;CPU time, memory, and disk I/O&lt;/li&gt;
&lt;li&gt;Regression testing&lt;/li&gt;
&lt;li&gt;Merge conflicts between parallel agents&lt;/li&gt;
&lt;li&gt;Human supervision and integration decisions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In an earlier article, I described the additional model usage associated with difficult-to-maintain software as &lt;strong&gt;token debt&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Unnecessary improvement work can also consume model usage without delivering enough value in return. This is particularly noticeable when several agents share a development environment and compete for expensive test resources.&lt;/p&gt;

&lt;p&gt;High quality is not the problem. The problem is spending resources on additional improvements whose expected benefits do not justify their costs.&lt;/p&gt;

&lt;p&gt;This distinction matters: mandatory safety, correctness, and security requirements are not optional just because they are expensive to verify.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define the scope before implementation
&lt;/h2&gt;

&lt;p&gt;An agent should know what it is expected to change and what it should leave alone.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Scope
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;Fix the reported display defect.
&lt;span class="k"&gt;- &lt;/span&gt;Preserve existing behavior outside the issue.
&lt;span class="k"&gt;- &lt;/span&gt;Add regression coverage for the defect.

&lt;span class="gu"&gt;## Out of scope
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;Repository-wide refactoring
&lt;span class="k"&gt;- &lt;/span&gt;Unrelated naming changes
&lt;span class="k"&gt;- &lt;/span&gt;Speculative abstractions
&lt;span class="k"&gt;- &lt;/span&gt;New dependencies without a demonstrated need
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I prefer to keep independent changes in separate issues and branches.&lt;/p&gt;

&lt;p&gt;If an agent discovers an unrelated improvement, it can report the finding for later evaluation instead of silently expanding the current task.&lt;/p&gt;

&lt;p&gt;A newly discovered security vulnerability or other serious risk still needs to be evaluated before integration. Scope control must not become an excuse to ignore blocking problems.&lt;/p&gt;

&lt;h2&gt;
  
  
  A Definition of Done is a stopping criterion
&lt;/h2&gt;

&lt;p&gt;Telling an agent to keep improving the code is not enough. It also needs an explicit definition of completion.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Definition of Done
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;Acceptance criteria are satisfied.
&lt;span class="k"&gt;- &lt;/span&gt;Required tests have passed.
&lt;span class="k"&gt;- &lt;/span&gt;Independent review is complete.
&lt;span class="k"&gt;- &lt;/span&gt;No unresolved merge blockers remain.
&lt;span class="k"&gt;- &lt;/span&gt;Required documentation is updated.
&lt;span class="k"&gt;- &lt;/span&gt;Validation evidence matches the final candidate.

Stop when all required conditions are satisfied.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once these conditions are met, additional work should require a clear justification.&lt;/p&gt;

&lt;p&gt;The objective is not to eliminate every conceivable imperfection. It is to satisfy the agreed requirements and quality gates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Review findings are not all equal
&lt;/h2&gt;

&lt;p&gt;AI-generated reviews can produce new findings on each iteration.&lt;/p&gt;

&lt;p&gt;A policy that requires every review to return zero findings can lead to repeated changes, especially when reviewers disagree about style or architectural preferences.&lt;/p&gt;

&lt;p&gt;One approach is to classify findings by severity:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Severity&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;th&gt;Typical action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CRITICAL&lt;/td&gt;
&lt;td&gt;Data corruption or severe security risk&lt;/td&gt;
&lt;td&gt;Must resolve&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MAJOR&lt;/td&gt;
&lt;td&gt;Significant functional defect&lt;/td&gt;
&lt;td&gt;Must resolve&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MEDIUM&lt;/td&gt;
&lt;td&gt;Meaningful quality or reliability issue&lt;/td&gt;
&lt;td&gt;Normally resolve&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MINOR&lt;/td&gt;
&lt;td&gt;Limited-impact improvement&lt;/td&gt;
&lt;td&gt;Evaluate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;INFO&lt;/td&gt;
&lt;td&gt;Suggestion or observation&lt;/td&gt;
&lt;td&gt;Optional&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I also distinguish severity from whether a finding blocks integration. Even a seemingly small issue can be a merge blocker if it violates an explicit acceptance criterion.&lt;/p&gt;

&lt;p&gt;Severity must be justified by evidence, not downgraded simply to make a change mergeable.&lt;/p&gt;

&lt;p&gt;For review loops, a practical policy is to re-review the corrected areas and their affected dependencies, expand the scope when necessary, and stop once required review conditions are satisfied.&lt;/p&gt;

&lt;p&gt;An iteration limit is also useful. However, reaching that limit does not mean the code is approved. If blockers remain, the correct outcome is to report them and stop without integration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use staged tests instead of testing everything after every edit
&lt;/h2&gt;

&lt;p&gt;AI agents frequently repeat an implementation, test, correction, and review cycle.&lt;/p&gt;

&lt;p&gt;Running a full regression suite after each small edit can consume considerable resources.&lt;/p&gt;

&lt;p&gt;I prefer to distinguish the following verification categories:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Static&lt;/td&gt;
&lt;td&gt;Static checks and structural validation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Build&lt;/td&gt;
&lt;td&gt;Compilation and build verification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fast&lt;/td&gt;
&lt;td&gt;Quick basic tests&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Related&lt;/td&gt;
&lt;td&gt;Tests relevant to the change&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Integration&lt;/td&gt;
&lt;td&gt;Component integration tests&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full&lt;/td&gt;
&lt;td&gt;Full regression suite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GuiTargeted&lt;/td&gt;
&lt;td&gt;Targeted GUI verification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GuiFull&lt;/td&gt;
&lt;td&gt;Full GUI verification&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These categories describe a design approach, not a universal set of commands.&lt;/p&gt;

&lt;p&gt;During implementation, agents can use fast and related tests to obtain feedback. Broader verification is selected according to the change and the required integration or release gates.&lt;/p&gt;

&lt;p&gt;Automatic test selection should fall back to broader verification when the impact is uncertain.&lt;/p&gt;

&lt;p&gt;The goal is not to remove regression tests. It is to execute the necessary tests at the appropriate time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Expensive GUI tests should be risk-based
&lt;/h2&gt;

&lt;p&gt;GUI tests may depend on desktop sessions, shared databases, and other limited resources.&lt;/p&gt;

&lt;p&gt;Not every code change requires the same GUI coverage.&lt;/p&gt;

&lt;p&gt;An example policy could be:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Change&lt;/th&gt;
&lt;th&gt;GUI verification&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Internal calculation&lt;/td&gt;
&lt;td&gt;Usually unnecessary&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data access logic&lt;/td&gt;
&lt;td&gt;Evaluate affected workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Minor text change&lt;/td&gt;
&lt;td&gt;Optional, depending on risk&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;High-risk save or navigation behavior&lt;/td&gt;
&lt;td&gt;Required targeted verification&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Complex GUI interaction&lt;/td&gt;
&lt;td&gt;Normally required&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Formal release&lt;/td&gt;
&lt;td&gt;Required GUI regression according to release policy&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If a GUI test is optional under an established policy, an agent can complete the task without running it. But the status must remain NOT_RUN, not PASSED.&lt;/p&gt;

&lt;p&gt;If the GUI test is required and the environment prevents it from running, integration remains blocked.&lt;/p&gt;

&lt;p&gt;Asynchronous test queues can help agents continue independent work while expensive tests run. A queued test is still not a successful test.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stop retrying failures that cannot be fixed by another attempt
&lt;/h2&gt;

&lt;p&gt;A failed test does not always indicate a product defect.&lt;/p&gt;

&lt;p&gt;The environment may lack database credentials, a usable desktop session, or another required resource.&lt;/p&gt;

&lt;p&gt;Repeatedly running the same test under unchanged conditions may waste time and model usage.&lt;/p&gt;

&lt;p&gt;I prefer explicit outcomes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PASSED: verification succeeded.&lt;/li&gt;
&lt;li&gt;FAILED: investigate the failure and correct the cause.&lt;/li&gt;
&lt;li&gt;QUEUED: execution is pending.&lt;/li&gt;
&lt;li&gt;NOT_RUN: verification has not been executed.&lt;/li&gt;
&lt;li&gt;BLOCKED_ENVIRONMENT: a required environmental condition is missing.&lt;/li&gt;
&lt;li&gt;BLOCKED_REQUIREMENT: a specification decision is required.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Bounded retries can make sense for transient errors. Persistent failures require investigation and a change in conditions, rather than an unlimited retry loop.&lt;/p&gt;

&lt;p&gt;A blocked task is not a completed task. Report the missing conditions, preserve the evidence, and continue only when appropriate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Put the policy in AGENTS.md
&lt;/h2&gt;

&lt;p&gt;An example repository-level policy might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Quality and Scope Policy
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;Implement only approved requirements.
&lt;span class="k"&gt;- &lt;/span&gt;Prefer minimal, localized changes.
&lt;span class="k"&gt;- &lt;/span&gt;Preserve behavior outside the approved scope.
&lt;span class="k"&gt;- &lt;/span&gt;Avoid speculative features and abstractions.
&lt;span class="k"&gt;- &lt;/span&gt;Report unrelated improvements separately.
&lt;span class="k"&gt;- &lt;/span&gt;Use staged tests during implementation.
&lt;span class="k"&gt;- &lt;/span&gt;Run all required integration gates.
&lt;span class="k"&gt;- &lt;/span&gt;Resolve all merge-blocking findings.
&lt;span class="k"&gt;- &lt;/span&gt;Never downgrade findings to bypass a gate.
&lt;span class="k"&gt;- &lt;/span&gt;Use bounded retries for transient failures.
&lt;span class="k"&gt;- &lt;/span&gt;Do not repeatedly retry unchanged environmental failures.
&lt;span class="k"&gt;- &lt;/span&gt;Stop when the Definition of Done is satisfied.
&lt;span class="k"&gt;- &lt;/span&gt;Report residual risks and unexecuted checks.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The exact policy depends on the project. High-risk systems will require stricter verification than small experimental projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure the outcome, not just the amount of work
&lt;/h2&gt;

&lt;p&gt;To evaluate whether these policies help, I would track:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;What it tells us&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Task completion time&lt;/td&gt;
&lt;td&gt;End-to-end development cost&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Token consumption&lt;/td&gt;
&lt;td&gt;Model usage per task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Review iterations&lt;/td&gt;
&lt;td&gt;Correction and review overhead&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Full regression runs&lt;/td&gt;
&lt;td&gt;Expensive verification frequency&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change scope&lt;/td&gt;
&lt;td&gt;Unnecessary expansion of modifications&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Completed issues&lt;/td&gt;
&lt;td&gt;Development throughput&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Escaped defects&lt;/td&gt;
&lt;td&gt;Quality after integration&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Reducing test counts or review iterations alone is not evidence of success. The objective is to reduce avoidable costs while maintaining the required quality.&lt;/p&gt;

&lt;p&gt;These are proposed evaluation metrics based on my development experience, not controlled benchmark results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;AI-driven development requires more than capable coding agents.&lt;/p&gt;

&lt;p&gt;It requires a development process that distinguishes mandatory quality requirements from optional improvements, defines when a task is complete, and handles blocked work honestly.&lt;/p&gt;

&lt;p&gt;The goal is not lower quality. It is to allocate development resources where they deliver meaningful value.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Teach AI agents what to do, what not to do, and when to stop.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;How do you define stopping criteria for your AI coding agents? Have you encountered review loops or unnecessary refactoring that continued after the original task was effectively complete?&lt;/p&gt;

&lt;h2&gt;
  
  
  Related articles
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/4ap8b"&gt;Refactoring in the AI Era: Does Clean Code Still Matter When AI Maintains It?&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/53pda"&gt;Implementing 'You Can't' for AI Coding Agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/h713a"&gt;Enforcing C# Architecture Rules at Compile Time with a Roslyn Analyzer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>Refactoring in the AI Era: Does Clean Code Still Matter When AI Maintains It?</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Fri, 04 Dec 2026 14:24:46 +0000</pubDate>
      <link>https://dev.to/loach2009/refactoring-in-the-ai-era-does-clean-code-still-matter-when-ai-maintains-it-2phf</link>
      <guid>https://dev.to/loach2009/refactoring-in-the-ai-era-does-clean-code-still-matter-when-ai-maintains-it-2phf</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;I've been using AI coding agents extensively in both open-source development and business application development.&lt;/p&gt;

&lt;p&gt;AI agents handle implementation, testing, code reviews, bug fixes, and many other development tasks.&lt;/p&gt;

&lt;p&gt;This made me wonder:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;If AI agents are responsible for maintaining a codebase, do we still need refactoring?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If humans spend less time reading source code, perhaps traditional readability requirements become less important.&lt;/p&gt;

&lt;p&gt;However, I believe refactoring remains necessary. What changes is how we evaluate its value.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI Does Not Eliminate Technical Debt
&lt;/h2&gt;

&lt;p&gt;AI can understand and modify code that humans might find tedious to read.&lt;/p&gt;

&lt;p&gt;Long methods, inconsistent naming, and duplicated logic are not necessarily immediate obstacles for AI.&lt;/p&gt;

&lt;p&gt;However, AI agents still have limitations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Context window constraints&lt;/li&gt;
&lt;li&gt;Token consumption&lt;/li&gt;
&lt;li&gt;Usage limits&lt;/li&gt;
&lt;li&gt;Incomplete understanding of dependencies&lt;/li&gt;
&lt;li&gt;Incorrect assumptions about existing behavior&lt;/li&gt;
&lt;li&gt;Repeated implementation and review cycles&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Replacing human developers with AI agents does not eliminate the cost of understanding software.&lt;/p&gt;

&lt;p&gt;It changes how that cost manifests.&lt;/p&gt;

&lt;h2&gt;
  
  
  Technical Debt Can Become Token Debt
&lt;/h2&gt;

&lt;p&gt;Consider a feature that requires an AI agent to inspect dozens of files before making a small modification.&lt;/p&gt;

&lt;p&gt;The agent must discover relevant code, understand dependencies, identify existing behavior, implement a change, and verify its correctness.&lt;/p&gt;

&lt;p&gt;This process is repeated for every subsequent modification.&lt;/p&gt;

&lt;p&gt;Poorly structured code can potentially increase:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Input token consumption&lt;/li&gt;
&lt;li&gt;Code exploration time&lt;/li&gt;
&lt;li&gt;Unnecessary tool calls&lt;/li&gt;
&lt;li&gt;Implementation retries&lt;/li&gt;
&lt;li&gt;Review iterations&lt;/li&gt;
&lt;li&gt;Testing costs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I think of this additional burden as &lt;strong&gt;token debt&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Traditional technical debt increases the cost of future software changes. In AI-assisted development, part of that cost may appear as additional model usage.&lt;/p&gt;

&lt;p&gt;Of course, token consumption does not directly correspond to lines of code. Search tools, caching, model capabilities, and context management also influence the result.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI Does Not Necessarily Benefit from More Abstraction
&lt;/h2&gt;

&lt;p&gt;Clean architecture and abstraction can improve maintainability.&lt;/p&gt;

&lt;p&gt;However, excessive abstraction can make code harder to navigate.&lt;/p&gt;

&lt;p&gt;Consider this call hierarchy:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ViewModel
  → UseCase
    → Facade
      → Service
        → Manager
          → Provider
            → Repository
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each layer may have a legitimate purpose.&lt;/p&gt;

&lt;p&gt;But if most layers simply forward calls to the next layer, an AI agent must explore multiple files to understand a relatively simple operation.&lt;/p&gt;

&lt;p&gt;Splitting code into smaller files does not automatically reduce complexity.&lt;/p&gt;

&lt;p&gt;A useful abstraction should provide meaningful separation of responsibilities, encapsulate complexity, or establish a valuable boundary.&lt;/p&gt;

&lt;p&gt;Abstraction for its own sake may increase the cost of understanding the system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Parallel AI Development Changes the Value of Modularity
&lt;/h2&gt;

&lt;p&gt;I frequently use multiple AI agents to work on independent tasks.&lt;/p&gt;

&lt;p&gt;This introduces another reason to improve code structure: reducing modification conflicts.&lt;/p&gt;

&lt;p&gt;Imagine a large ViewModel responsible for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Data retrieval&lt;/li&gt;
&lt;li&gt;Input validation&lt;/li&gt;
&lt;li&gt;Database updates&lt;/li&gt;
&lt;li&gt;Spreadsheet exports&lt;/li&gt;
&lt;li&gt;Printing&lt;/li&gt;
&lt;li&gt;UI state management&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even if agents work on unrelated features, they may need to modify the same source file.&lt;/p&gt;

&lt;p&gt;A more modular structure could look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Feature/
├── FeatureViewModel.cs
├── FeatureQueryService.cs
├── FeatureUpdateService.cs
├── FeatureValidator.cs
├── FeatureExporter.cs
└── FeaturePrintService.cs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Clear boundaries make it easier to assign independent tasks to different agents.&lt;/p&gt;

&lt;p&gt;They may also reduce merge conflicts and unnecessary code exploration.&lt;/p&gt;

&lt;p&gt;However, separating files alone does not eliminate semantic conflicts. Dependencies and behavioral contracts remain important.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testability Matters More Than Cosmetic Cleanliness
&lt;/h2&gt;

&lt;p&gt;AI agents often repeat the following cycle:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Implement
    ↓
Test
    ↓
Fix
    ↓
Review
    ↓
Test again
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If every modification requires an expensive integration test, development throughput suffers.&lt;/p&gt;

&lt;p&gt;Separating deterministic business logic from external side effects makes faster feedback possible.&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="k"&gt;public&lt;/span&gt; &lt;span class="k"&gt;static&lt;/span&gt; &lt;span class="kt"&gt;decimal&lt;/span&gt; &lt;span class="nc"&gt;CalculateTotal&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="kt"&gt;int&lt;/span&gt; &lt;span class="n"&gt;quantity&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="kt"&gt;decimal&lt;/span&gt; &lt;span class="n"&gt;unitPrice&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;quantity&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;unitPrice&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This calculation can be tested without a database, GUI session, or external service.&lt;/p&gt;

&lt;p&gt;In AI-driven development, testability is not only a quality concern. It can also influence development efficiency.&lt;/p&gt;

&lt;p&gt;Fast tests and targeted regression tests allow agents to validate localized changes before running broader quality gates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Documentation Also Needs Refactoring
&lt;/h2&gt;

&lt;p&gt;AI agents rely on more than source code.&lt;/p&gt;

&lt;p&gt;They also consume architecture documents, specifications, development policies, and instructions such as &lt;code&gt;AGENTS.md&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Duplicated or outdated documentation can introduce unnecessary context and contradictory instructions.&lt;/p&gt;

&lt;p&gt;A useful documentation structure might look like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;AGENTS.md
docs/
├── architecture.md
├── testing.md
├── specifications/
└── adr/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Each document should have a clear purpose.&lt;/p&gt;

&lt;p&gt;Rather than repeating the same rules across multiple files, maintain a canonical source and reference it when necessary.&lt;/p&gt;

&lt;p&gt;Documentation consistency is an important part of AI-assisted maintainability.&lt;/p&gt;

&lt;h2&gt;
  
  
  Not Everything Should Be Refactored
&lt;/h2&gt;

&lt;p&gt;AI makes large-scale code modifications easier to initiate.&lt;/p&gt;

&lt;p&gt;That does not mean every possible refactoring is worth performing.&lt;/p&gt;

&lt;p&gt;Refactoring still requires:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Model usage&lt;/li&gt;
&lt;li&gt;Regression testing&lt;/li&gt;
&lt;li&gt;Code reviews&lt;/li&gt;
&lt;li&gt;Integration work&lt;/li&gt;
&lt;li&gt;Risk management&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Stable code that rarely changes may not justify the cost of restructuring it.&lt;/p&gt;

&lt;p&gt;My preferred priorities are:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Refactoring target&lt;/th&gt;
&lt;th&gt;Priority&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Frequently modified monolithic classes&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Files that cause repeated merge conflicts&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code that is difficult to test&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Duplicated logic that causes inconsistent fixes&lt;/td&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unnecessary abstraction layers&lt;/td&gt;
&lt;td&gt;Medium to high&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Inconsistent naming&lt;/td&gt;
&lt;td&gt;Depends on impact&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stable legacy code&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Purely cosmetic changes&lt;/td&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The goal is to reduce future modification costs, not to maximize architectural elegance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measuring Refactoring in AI-Driven Development
&lt;/h2&gt;

&lt;p&gt;Traditional code quality metrics remain useful, but I would also consider AI-specific operational metrics.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;What it measures&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Files inspected&lt;/td&gt;
&lt;td&gt;Scope of code exploration&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Token consumption&lt;/td&gt;
&lt;td&gt;Model usage per task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Task completion time&lt;/td&gt;
&lt;td&gt;Implementation and verification time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Review iterations&lt;/td&gt;
&lt;td&gt;Repeated correction cycles&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Merge conflicts&lt;/td&gt;
&lt;td&gt;Parallel development friction&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Regression failures&lt;/td&gt;
&lt;td&gt;Impact on existing behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test execution time&lt;/td&gt;
&lt;td&gt;Cost of verification&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These metrics could help determine whether a refactoring actually improves AI-assisted maintenance.&lt;/p&gt;

&lt;p&gt;Comparisons should account for differences in models, tools, caching, task complexity, and execution environments.&lt;/p&gt;

&lt;p&gt;I have not yet established controlled benchmarks for these effects. They are proposed evaluation criteria rather than measured performance improvements.&lt;/p&gt;

&lt;h2&gt;
  
  
  Give AI Agents Explicit Refactoring Rules
&lt;/h2&gt;

&lt;p&gt;An &lt;code&gt;AGENTS.md&lt;/code&gt; policy could include:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;## Refactoring Policy
&lt;/span&gt;
&lt;span class="k"&gt;- &lt;/span&gt;Prefer localized, behavior-preserving changes.
&lt;span class="k"&gt;- &lt;/span&gt;Refactor when it reduces future modification costs.
&lt;span class="k"&gt;- &lt;/span&gt;Avoid unnecessary abstractions.
&lt;span class="k"&gt;- &lt;/span&gt;Keep dependencies and side effects explicit.
&lt;span class="k"&gt;- &lt;/span&gt;Separate refactoring from behavior changes.
&lt;span class="k"&gt;- &lt;/span&gt;Add characterization tests when necessary.
&lt;span class="k"&gt;- &lt;/span&gt;Avoid unrelated repository-wide modifications.
&lt;span class="k"&gt;- &lt;/span&gt;Run required regression tests before integration.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;AI agents should not automatically restructure unrelated code simply because they can.&lt;/p&gt;

&lt;p&gt;Refactoring needs a purpose, a defined scope, and verification.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Does clean code still matter when AI maintains it?&lt;/p&gt;

&lt;p&gt;Yes, but I believe the criteria for evaluating code quality are evolving.&lt;/p&gt;

&lt;p&gt;In addition to human readability, we should consider:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AI context consumption&lt;/li&gt;
&lt;li&gt;Code exploration costs&lt;/li&gt;
&lt;li&gt;Modification locality&lt;/li&gt;
&lt;li&gt;Parallel development efficiency&lt;/li&gt;
&lt;li&gt;Testability&lt;/li&gt;
&lt;li&gt;Regression risk&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The objective is not to produce the most elegant code possible.&lt;/p&gt;

&lt;p&gt;It is to produce software that both humans and AI agents can modify safely, predictably, and economically.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In the AI era, refactoring is not just an investment in readability. It is an investment in reducing the cost of future changes.&lt;/strong&gt;&lt;/p&gt;




&lt;p&gt;These are my observations and design considerations from using AI coding agents in real development workflows. The code examples are illustrative rather than excerpts from proprietary applications.&lt;/p&gt;

&lt;p&gt;I'd be interested to hear how other developers evaluate technical debt in AI-maintained codebases.&lt;/p&gt;

&lt;p&gt;Have you noticed differences in token usage, code exploration, or maintenance efficiency after refactoring?&lt;/p&gt;

&lt;h2&gt;
  
  
  Related articles
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/8k29b"&gt;The Overengineering Problem in AI-Driven Development: Teaching AI Agents When to Stop&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/53pda"&gt;Implementing 'You Can't' for AI Coding Agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/7a13a"&gt;Keeping Translated OSS Documentation Fresh with an SSOT and CI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/h713a"&gt;Enforcing C# Architecture Rules at Compile Time with a Roslyn Analyzer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>refactoring</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>PC Engine CD BIOS Devlog: Multibank Infrastructure and an 81-API Black-Box Test Foundation</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Thu, 03 Dec 2026 06:14:44 +0000</pubDate>
      <link>https://dev.to/loach2009/pc-engine-cd-bios-devlog-multibank-infrastructure-and-an-81-api-black-box-test-foundation-2c5b</link>
      <guid>https://dev.to/loach2009/pc-engine-cd-bios-devlog-multibank-infrastructure-and-an-81-api-black-box-test-foundation-2c5b</guid>
      <description>&lt;p&gt;I'm developing &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;oss-pce-cd-bios&lt;/a&gt;, an independent open-source research project aimed at eventually building a PC Engine / TurboGrafx-CD System Card replacement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/a/g5o7b"&gt;My December 2 update&lt;/a&gt; covered the ordinary DEV count reaching 22/81, the first experimental multibank proof of concept, and the bottleneck that kept CI parallel scheduling from producing a large speedup.&lt;/p&gt;

&lt;p&gt;As of &lt;strong&gt;December 3, 2026, around 15:00 JST&lt;/strong&gt;, the project has made substantial progress in two foundations: &lt;strong&gt;generalizing the experimental multibank machinery&lt;/strong&gt; and &lt;strong&gt;creating an 81-entry black-box test ledger plus a common runner prototype&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This is not a retail compatibility milestone. A new test framework, a successful synthetic execution, and a verified reference-firmware ABI are distinct achievements that must not be conflated.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Generalizing multibank support
&lt;/h2&gt;

&lt;p&gt;The original proof of concept placed the body of candidate slot &lt;code&gt;$3F MA_MUL8U&lt;/code&gt; in Bank1 while retaining a public entry and trampoline in the common Bank0.&lt;/p&gt;

&lt;p&gt;Several merged PRs extend that design:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;PR&lt;/th&gt;
&lt;th&gt;Contribution&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1053" rel="noopener noreferrer"&gt;#1053&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Generic linker with per-bank placement/usage reporting, physical-position verification, and overflow rejection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1050" rel="noopener noreferrer"&gt;#1050&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Reusable source structure for a bank-switching far-call dispatcher&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1049" rel="noopener noreferrer"&gt;#1049&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Machine-readable slot-to-bank map and structural validation across all 32 ROM banks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1048" rel="noopener noreferrer"&gt;#1048&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Provenance checks for build inputs, per-bank SHA-256 evidence, and explicit promotion requirements&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1044" rel="noopener noreferrer"&gt;#1044&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Additional pinned-core experiments and fault injection around T/IRQ/MPR/stack and caller-bank behavior&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At a high level:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Caller
  -&amp;gt; Bank0 API table
  -&amp;gt; Bank0 dispatcher
  -&amp;gt; save/switch MPR6 to an extra bank
  -&amp;gt; execute the banked API body
  -&amp;gt; return to dispatcher in Bank0
  -&amp;gt; restore MPR6 and return to original caller
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The API table, boot logic, and vectors stay in Bank0. The image remains fixed at &lt;strong&gt;256 KiB&lt;/strong&gt;, and the reserved &lt;code&gt;$E800&lt;/code&gt; diagnostic boundary must not be crossed.&lt;/p&gt;

&lt;p&gt;The key difference from the original single-slot PoC is that &lt;strong&gt;the map and validation machinery are becoming reusable for additional slots&lt;/strong&gt;. The generic linker rejects undeclared banks, incorrect physical positions, and overflows; the structural verifier ties each table entry and dispatcher to a declared body and bank.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1044" rel="noopener noreferrer"&gt;#1044&lt;/a&gt; PR reports &lt;strong&gt;seven GREEN real-core cases and six RED fault-detection cases&lt;/strong&gt; on the pinned Geargrafx core. However, &lt;strong&gt;T=1 execution in the relevant mid-stream conditions and IRQ reentrancy remain UNVERIFIED&lt;/strong&gt;. Narrow passing results are not a general proof across all interrupt and CPU-flag states.&lt;/p&gt;

&lt;p&gt;All this still belongs to the &lt;strong&gt;experimental multibank profile&lt;/strong&gt;, not a fully migrated ordinary DEV ROM. Promotion requires evidence and a separate explicit decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A generated black-box contract ledger covering 81 entries
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1057" rel="noopener noreferrer"&gt;PR #1057&lt;/a&gt; introduces an 81-row generated &lt;strong&gt;black-box contract ledger&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Instead of manually duplicating the API identifiers, implementation status, reference-contract claims, and JSR permissions, the generator reads the existing canonical project ledgers and joins them with a separate &lt;strong&gt;black-box-specific overlay&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That matters because duplicated metadata tends to drift as an experimental project evolves.&lt;/p&gt;

&lt;p&gt;The generated ledger's current summary is:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Axis&lt;/th&gt;
&lt;th&gt;Current state&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Project-owned ordinary DEV implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;22/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remaining default stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;59/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Black-box test state&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;81/81 &lt;code&gt;BB_UNTESTED&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independently verified reference ABI&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reference-firmware JSR permissions&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release eligibility&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The ledger supports distinct states such as &lt;code&gt;BB_CONTRACT_DEFINED&lt;/code&gt;, &lt;code&gt;BB_DEV_BEHAVIOR_VERIFIED&lt;/code&gt;, &lt;code&gt;BB_SYNTHETIC_VERIFIED&lt;/code&gt;, &lt;code&gt;BB_STUB_STOP_VERIFIED&lt;/code&gt;, &lt;code&gt;BB_BLOCKED_ABI&lt;/code&gt;, and &lt;code&gt;BB_BLOCKED_DEPENDENCY&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;But &lt;strong&gt;no entry is promoted to a verified black-box state just because this framework exists&lt;/strong&gt;. The meaningful accomplishment is that future evidence has a consistent, reproducible place to be recorded.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A five-case common runner proof of concept
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1058" rel="noopener noreferrer"&gt;PR #1058&lt;/a&gt; merges a &lt;strong&gt;common black-box runner PoC&lt;/strong&gt; built on the existing Geargrafx, IPL, and API-entry probe infrastructure.&lt;/p&gt;

&lt;p&gt;The initial five cases cover:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;math_3f&lt;/code&gt; — project-defined math behavior;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;ram_3e&lt;/code&gt; — RAM-related behavior;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;device_2e&lt;/code&gt; — a device-facing entry;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;unimplemented_02&lt;/code&gt; — expected refusal behavior;&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;bankswitch_3f&lt;/code&gt; — explicitly blocked for the experimental banked image.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each case is intended to run in an isolated probe process with cold/warm observations, budget and timeout checks, stack/MPR/RAM evidence, per-case JSONL output, and a single-case rerun option. Expectations come from independent mathematical or project-defined contracts rather than simply mirroring a BIOS output.&lt;/p&gt;

&lt;p&gt;It is important to state the remaining work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The five-case runner is &lt;strong&gt;not yet fully data-driven from the new 81-row ledger&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;It does not yet provide complete observation surfaces for VRAM, CD, ADPCM, backup RAM, IRQ, timer, PSG, and input.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-core execution on the merged runner's PR HEAD was NOT_RUN&lt;/strong&gt;; the reported passing tests cover syntax and host guards.&lt;/li&gt;
&lt;li&gt;The bank-switching case is deliberately marked &lt;code&gt;BLOCKED_EXPERIMENTAL_IMAGE&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the merged result is a &lt;strong&gt;runner framework prototype&lt;/strong&gt;, not five proven reference-equivalent APIs or five completed real-core observations.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. CI: splitting real-core execution instead of only scheduling around it
&lt;/h2&gt;

&lt;p&gt;The previous update explained why a DAG scheduler by itself was not enough: the monolithic &lt;code&gt;test-real-core&lt;/code&gt; stage dominated the wall time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1052" rel="noopener noreferrer"&gt;PR #1052&lt;/a&gt; merged an additional staging execution path that separates the real-core stage into &lt;strong&gt;five isolated jobs&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;direct
rc-0
rc-1
rc-2
rc-3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The split reuses existing Required CI unit and shard definitions. It validates the combined test scope and aggregates results with SHA, run identity, and pinned cc65/Geargrafx evidence. Missing, duplicated, failed, or tampered records must fail closed; the Required workflows and checks remain unchanged.&lt;/p&gt;

&lt;p&gt;The PR's performance comparison is deliberately labeled &lt;strong&gt;ESTIMATED&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Reported number&lt;/th&gt;
&lt;th&gt;Evidence level&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Original monolithic real-core step&lt;/td&gt;
&lt;td&gt;~1,671 seconds&lt;/td&gt;
&lt;td&gt;Earlier measured input&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conservative split critical-path estimate&lt;/td&gt;
&lt;td&gt;~1,181 seconds plus overhead&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Estimate&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Estimated reduction&lt;/td&gt;
&lt;td&gt;~490 seconds before overhead, ~29%&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;Estimate, not CI-measured&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The inputs come from previous measurement records, not a new end-to-end paired CI run. Accordingly, the project cannot claim that the split has &lt;strong&gt;actually delivered a 29% speedup&lt;/strong&gt;, much less the broader &lt;strong&gt;60% target&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Other merged CI improvements include &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1051" rel="noopener noreferrer"&gt;#1051&lt;/a&gt;, which extracts the DEV release-refusal gate into its own tightly scoped job, and &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1060" rel="noopener noreferrer"&gt;#1060&lt;/a&gt;, which removes redundant scope edges and adds a timing ledger. They retain the established Required check semantics.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Carefully scoped API progress and safety work
&lt;/h2&gt;

&lt;p&gt;Several smaller merged PRs improve the groundwork without changing genuine compatibility claims.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1028" rel="noopener noreferrer"&gt;PR #1028&lt;/a&gt; added a &lt;strong&gt;DEV-only LIMITED &lt;code&gt;$47 MA_ATNI&lt;/code&gt; source body&lt;/strong&gt;. However, it deliberately &lt;strong&gt;did not update the canonical DEV implementation ledger or count&lt;/strong&gt;, so the reported ordinary DEV inventory remains &lt;strong&gt;22/81, not 23/81&lt;/strong&gt;. A source file's presence is not sufficient grounds to rewrite the project's official readiness figures.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1029" rel="noopener noreferrer"&gt;PR #1029&lt;/a&gt; investigates the unresolved &lt;code&gt;$50&lt;/code&gt; candidate identity and contract disagreement, including the MA_DIV8U / MA_CBASIS interpretations. It adds a clearly labeled hypothesis model while preserving &lt;strong&gt;&lt;code&gt;BLOCKED_ABI&lt;/code&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1031" rel="noopener noreferrer"&gt;PR #1031&lt;/a&gt; documents the &lt;code&gt;$1D BM_FILES&lt;/code&gt; contract, while &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1030" rel="noopener noreferrer"&gt;#1030&lt;/a&gt; sets up observation conditions for &lt;code&gt;$25&lt;/code&gt; and &lt;code&gt;$1C&lt;/code&gt;. Neither is a genuine ABI implementation or a new commercial-media measurement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1027" rel="noopener noreferrer"&gt;PR #1027&lt;/a&gt; introduces an adapter for the special &lt;code&gt;$4A&lt;/code&gt; limited-observation decision layer. It deliberately &lt;strong&gt;does not connect an emulator execution engine or override the permanent JSR gate&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1026" rel="noopener noreferrer"&gt;PR #1026&lt;/a&gt; improves experimental media-identity derivation without bypassing the existing refusal checks. &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1032" rel="noopener noreferrer"&gt;PR #1032&lt;/a&gt; fixes DEV-progress guards that were over-blocking legitimate future project changes.&lt;/p&gt;

&lt;p&gt;Finally, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1063" rel="noopener noreferrer"&gt;PR #1063&lt;/a&gt; documents an approved &lt;strong&gt;independent-review model fallback policy&lt;/strong&gt; when the preferred reviewer model is unavailable. Independent, read-only review remains mandatory; if approved review routes fail, the result remains BLOCKED rather than silently self-approved.&lt;/p&gt;

&lt;h2&gt;
  
  
  December 3 status
&lt;/h2&gt;

&lt;p&gt;The inspected main revision was &lt;strong&gt;&lt;code&gt;195175ff&lt;/code&gt;&lt;/strong&gt;, following the merge of PR #1029, around &lt;strong&gt;14:40 JST on December 3&lt;/strong&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evidence axis&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Canonical ordinary DEV implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;22/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;59/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generated black-box ledger&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;81 rows, all &lt;code&gt;BB_UNTESTED&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Genuine reference ABI VERIFIED&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Permitted reference-firmware JSR entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Owner-approved &lt;code&gt;DEV_CALLABLE&lt;/code&gt; entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demonstrated commercial-game title screen&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No; &lt;code&gt;G5_OBSERVED=false&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release eligibility&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This was a foundation-building update: &lt;strong&gt;safer generalized bank placement, better provenance, a common way to record black-box expectations, a runner PoC, and a credible path toward sharding expensive CI work&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The next significant milestone is to attach actual case-specific evidence to the ledger and validate banked execution under the still-unknown conditions—without upgrading an invented development contract into a claim about the original System Card firmware.&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key PRs: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1053" rel="noopener noreferrer"&gt;#1053 generalized linker&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1052" rel="noopener noreferrer"&gt;#1052 CI split&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1057" rel="noopener noreferrer"&gt;#1057 black-box ledger&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1058" rel="noopener noreferrer"&gt;#1058 common runner&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This independent project is unaffiliated with NEC, Hudson Soft, Konami, or other rights holders. It does not distribute proprietary BIOS images, commercial game media, or extracted copyrighted code.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>gamedev</category>
      <category>opensource</category>
      <category>programming</category>
      <category>testing</category>
    </item>
    <item>
      <title>PC Engine CD BIOS Devlog: 22 DEV Routines, a Multibank PoC, and the Limits of CI Parallelism</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Wed, 02 Dec 2026 09:48:43 +0000</pubDate>
      <link>https://dev.to/loach2009/pc-engine-cd-bios-devlog-22-dev-routines-a-multibank-poc-and-the-limits-of-ci-parallelism-2l4</link>
      <guid>https://dev.to/loach2009/pc-engine-cd-bios-devlog-22-dev-routines-a-multibank-poc-and-the-limits-of-ci-parallelism-2l4</guid>
      <description>&lt;p&gt;I'm developing &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;oss-pce-cd-bios&lt;/a&gt;, an independent open-source research project working toward a PC Engine / TurboGrafx-CD System Card replacement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/a/nmc7b"&gt;My December 1 update&lt;/a&gt; covered a host-only test sweep across all 81 candidate API slots.&lt;/p&gt;

&lt;p&gt;This update has three concrete developments: &lt;strong&gt;the ordinary DEV implementation count has increased from 18 to 22&lt;/strong&gt;, a &lt;strong&gt;bank-switched experimental API call has been demonstrated on pinned Geargrafx&lt;/strong&gt;, and &lt;strong&gt;CI staging now has a dependency-aware parallel executor&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The evidence snapshot is main at &lt;strong&gt;&lt;code&gt;682ac8cb&lt;/code&gt;, December 2, 2026, around 18:06 JST&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;None of these developments makes the firmware a compatible System Card BIOS. Genuine reference-ABI verification, owner approval for callable API entries, retail title-screen proof, and firmware release eligibility remain separate, blocked milestones.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four additional project-defined DEV routines
&lt;/h2&gt;

&lt;p&gt;The earlier ordinary DEV ROM had 18 project-owned implementations and 63 nonreturning stubs. Since then, four implementation PRs were merged:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Candidate entry&lt;/th&gt;
&lt;th&gt;Actual development-only behavior&lt;/th&gt;
&lt;th&gt;Merged PR&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$2D EX_IRQOFF&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sets the CPU interrupt-disable I flag; does not configure VDC or interrupt-controller state&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1009" rel="noopener noreferrer"&gt;#1009&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$3B EX_SETDMA&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Writes the VDC DESR destination-address latch; does not initiate DMA&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1013" rel="noopener noreferrer"&gt;#1013&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$39 EX_SETRED&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sets the VDC MARR read-address register only&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1015" rel="noopener noreferrer"&gt;#1015&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$38 EX_SETRCR&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Writes the VDC RCR raster register, excluding CR and unrelated registers&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1014" rel="noopener noreferrer"&gt;#1014&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The normal DEV inventory therefore stands at &lt;strong&gt;22 of 81 development implementations&lt;/strong&gt;, with &lt;strong&gt;59 fallback stubs&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;These routines use project-defined development contracts. They do &lt;strong&gt;not&lt;/strong&gt; establish the original System Card calling conventions, side effects, or compatibility. All 81 readiness states are still &lt;code&gt;NOT_READY&lt;/code&gt;; &lt;strong&gt;reference ABI VERIFIED remains 0/81&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A separate merged change, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1017" rel="noopener noreferrer"&gt;PR #1017&lt;/a&gt;, introduces a temporary, fail-closed &lt;strong&gt;slot-$4A observation-permit model&lt;/strong&gt;. This is an auxiliary decision layer, not authorization to execute genuine firmware calls. Its own records keep &lt;code&gt;execution_permitted=false&lt;/code&gt;, and the permanent reference-JSR gate remains &lt;strong&gt;0/81&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Documentation caught up with the 22-routine ledger
&lt;/h2&gt;

&lt;p&gt;Four additional routines can leave public documentation out of date.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1022" rel="noopener noreferrer"&gt;PR #1022&lt;/a&gt; synchronized the English and Japanese READMEs, overview SVG, public Pages, &lt;code&gt;docs/status.md&lt;/code&gt;, documentation pointers, and tests against the current &lt;strong&gt;22/81&lt;/strong&gt; inventory.&lt;/p&gt;

&lt;p&gt;The update preserves older snapshots as dated history rather than silently rewriting them. Ledger-derived consistency tests now help prevent a mismatch between implementation status and public project pages.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a 256 KiB ROM still runs out of API space
&lt;/h2&gt;

&lt;p&gt;The firmware image is fixed at &lt;strong&gt;256 KiB&lt;/strong&gt;, but that does not mean every byte is freely available for ordinary API bodies.&lt;/p&gt;

&lt;p&gt;The HuC6280 memory map, shared entry table, boot and vector responsibilities, and reserved diagnostic-probe region constrain the &lt;strong&gt;Bank0 OVERRIDES&lt;/strong&gt; section. In particular, the current build must not spill into the &lt;strong&gt;&lt;code&gt;$E800&lt;/code&gt; overlay boundary&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The project has therefore been exploring a more scalable structure: keep the public-facing entry table and a small dispatcher in the common bank, and move selected API bodies into additional banks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1023" rel="noopener noreferrer"&gt;PR #1023&lt;/a&gt; merged an &lt;strong&gt;experimental multibank proof of concept&lt;/strong&gt; using slot &lt;code&gt;$3F MA_MUL8U&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Its simplified control flow looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Caller -&amp;gt; API table ($E0BD)
       -&amp;gt; Bank0 dispatcher ($E000-$FFFF, fixed MPR7)
       -&amp;gt; save MPR6; switch MPR6 to Bank1
       -&amp;gt; Bank1 body ($C000-$DFFF)
       -&amp;gt; RTS to Bank0 dispatcher
       -&amp;gt; restore MPR6
       -&amp;gt; RTS to original caller
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are two distinct returns. The call from the Bank0 dispatcher to the extra-bank body stacks a Bank0 return address, and the dispatcher's own return must restore the original caller's bank mapping &lt;strong&gt;before&lt;/strong&gt; returning to that caller. Confusing the two would make the control flow appear correct in a narrow test while breaking other call sites.&lt;/p&gt;

&lt;p&gt;The PR reported an unchanged &lt;strong&gt;262,144-byte&lt;/strong&gt; image size, byte-identical ordinary DEV ROM, host and fault-injection tests, and passing synthetic pinned-core execution evidence.&lt;/p&gt;

&lt;p&gt;This establishes a &lt;strong&gt;limited experimental bank-switching mechanism&lt;/strong&gt;. It is not a migration of the whole normal DEV firmware to a multibank architecture.&lt;/p&gt;

&lt;h2&gt;
  
  
  A formal migration contract—and known unverified cases
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1042" rel="noopener noreferrer"&gt;PR #1042&lt;/a&gt; added a formal multibank migration design and structural host checks.&lt;/p&gt;

&lt;p&gt;The design keeps the API table, boot paths, and vectors in common Bank0. Extra banks contain API bodies. A machine-readable map records slot, bank, dispatcher, body, and entry relationships, and any new slot must be independently validated before migration.&lt;/p&gt;

&lt;p&gt;The current PoC's verified domain is deliberately narrow: &lt;strong&gt;T=0, I=1&lt;/strong&gt;, plus documented MPR and stack prerequisites. Entry with &lt;strong&gt;T=1&lt;/strong&gt; or IRQ reentrancy during a bank switch remains &lt;strong&gt;UNVERIFIED&lt;/strong&gt;. The general runtime-proof follow-up was not merged into main at this snapshot.&lt;/p&gt;

&lt;p&gt;Size reduction still matters while this migration is being developed. &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1043" rel="noopener noreferrer"&gt;PR #1043&lt;/a&gt; shaved &lt;strong&gt;3 bytes&lt;/strong&gt; from slot &lt;code&gt;$44 MA_SQRT&lt;/code&gt;, yielding a reported OVERRIDES end of &lt;code&gt;$E7E7&lt;/code&gt; and only &lt;code&gt;$18&lt;/code&gt; bytes of headroom before &lt;code&gt;$E800&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1046" rel="noopener noreferrer"&gt;PR #1046&lt;/a&gt; retained &lt;strong&gt;BLOCKED_CAPACITY&lt;/strong&gt; for other pending candidates. A few saved bytes are not proof that every future routine will fit.&lt;/p&gt;

&lt;h2&gt;
  
  
  CI parallelism: the scheduler works, but the 60% target does not
&lt;/h2&gt;

&lt;p&gt;The other prominent development is &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1041" rel="noopener noreferrer"&gt;PR #1041&lt;/a&gt;, merged on December 2.&lt;/p&gt;

&lt;p&gt;It adds a staging executor with &lt;strong&gt;dependency-aware DAG waves&lt;/strong&gt;, &lt;code&gt;--jobs&lt;/code&gt; selection, per-command timings, timeout handling, and process-group termination. Unknown dependency relationships fall back to serial execution rather than risking shared build outputs.&lt;/p&gt;

&lt;p&gt;The default is still &lt;strong&gt;&lt;code&gt;--jobs 1&lt;/code&gt;&lt;/strong&gt;, preserving legacy sequential behavior. The workflow has not silently opted into aggressive parallelism.&lt;/p&gt;

&lt;p&gt;Crucially, actual measurements revealed the current limit:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Stage&lt;/th&gt;
&lt;th&gt;Reported duration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;test-real-core&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;1,671 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;test&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;356 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;dev-integration&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;159 s&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;With the current shared-worktree read/write hazards, the relevant heavy stages cannot safely overlap. The resulting &lt;strong&gt;overall L3 staging speed-up was approximately 0%&lt;/strong&gt; in the reported measurements, despite a working scheduling mechanism.&lt;/p&gt;

&lt;p&gt;That means the proposed &lt;strong&gt;60% reduction has not been achieved&lt;/strong&gt;. The real blocker is the large &lt;code&gt;test-real-core&lt;/code&gt; command itself, not the absence of an outer parallel scheduler.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1047" rel="noopener noreferrer"&gt;PR #1047&lt;/a&gt; merged an additive staging real-core split foundation, while a more complete fan-out and aggregation proposal remained open at the snapshot. Those changes must be measured before claiming a substantial wall-time improvement.&lt;/p&gt;

&lt;p&gt;The Required CI, safety gates, and release restrictions are not being weakened to manufacture a faster green check.&lt;/p&gt;

&lt;h2&gt;
  
  
  Snapshot: December 2, 2026
&lt;/h2&gt;

&lt;p&gt;The latest inspected main revision for this post was &lt;code&gt;682ac8cb&lt;/code&gt;, after PRs #1042, #1045, #1046, and #1047 were merged.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evidence axis&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ordinary project-owned DEV implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;22/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nonreturning fallback stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;59/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independently VERIFIED reference ABI entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reference BIOS JSR entries permitted&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Owner-approved &lt;code&gt;DEV_CALLABLE&lt;/code&gt; entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commercial-game title screen demonstrated&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No; &lt;code&gt;G5_OBSERVED=false&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firmware release eligibility&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This time, the implementation count genuinely increased by four. More importantly, the project demonstrated a way to move an experimental API body out of cramped Bank0 space, and its CI work identified a precise performance bottleneck rather than assuming more jobs would automatically make everything faster.&lt;/p&gt;

&lt;p&gt;The next meaningful milestones are to &lt;strong&gt;validate the missing bank-switching runtime conditions&lt;/strong&gt;, expand the multibank design only under explicit contracts, and split the expensive real-core workload without sacrificing its verification guarantees.&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key PRs: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1022" rel="noopener noreferrer"&gt;#1022 docs&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1023" rel="noopener noreferrer"&gt;#1023 multibank PoC&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1041" rel="noopener noreferrer"&gt;#1041 CI scheduling&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1042" rel="noopener noreferrer"&gt;#1042 migration design&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This independent project is unaffiliated with NEC, Hudson Soft, Konami, or other rights holders. It does not distribute proprietary BIOS files, commercial game images, or extracted copyrighted code.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related devlogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/kc88b"&gt;Next devlog: 2026-12-03&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>cicd</category>
      <category>gamedev</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
    <item>
      <title>PC Engine CD BIOS Devlog: 15 Merged Test PRs and an 81-Slot Safety Net</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Tue, 01 Dec 2026 10:11:11 +0000</pubDate>
      <link>https://dev.to/loach2009/pc-engine-cd-bios-devlog-15-merged-test-prs-and-an-81-slot-safety-net-ohm</link>
      <guid>https://dev.to/loach2009/pc-engine-cd-bios-devlog-15-merged-test-prs-and-an-81-slot-safety-net-ohm</guid>
      <description>&lt;p&gt;I'm developing &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;oss-pce-cd-bios&lt;/a&gt;, an independent open-source project aiming toward a PC Engine / TurboGrafx-CD System Card replacement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/a/bln6b"&gt;The November 30 update&lt;/a&gt; covered passive reference-firmware observation, strict treatment of missing evidence, a permission-gated RUN-button experiment design, and CI optimization.&lt;/p&gt;

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

&lt;p&gt;Fifteen consecutive test PRs, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/991" rel="noopener noreferrer"&gt;#991&lt;/a&gt; through &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1005" rel="noopener noreferrer"&gt;#1005&lt;/a&gt;, were all merged into main. This does &lt;strong&gt;not&lt;/strong&gt; mean fifteen genuine BIOS services were implemented. Most of this wave is &lt;strong&gt;host-only testing of project-defined models, synthetic fixtures, ledgers, and failure classifications&lt;/strong&gt;. These are not retail-game execution tests.&lt;/p&gt;

&lt;h2&gt;
  
  
  An 81-slot map is not 81 verified APIs
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/992" rel="noopener noreferrer"&gt;PR #992&lt;/a&gt; added host-only checks for the candidate API ledger, reference-JSR execution gate, claims, and DEV implementation state. &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/997" rel="noopener noreferrer"&gt;PR #997&lt;/a&gt; added an &lt;strong&gt;81-slot coverage-map test&lt;/strong&gt; spanning CD, ADPCM, backup RAM, extended/display, math, and miscellaneous extension areas.&lt;/p&gt;

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

&lt;p&gt;The revised tests check &lt;strong&gt;structural and approval invariants&lt;/strong&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Boundary checks across CD, ADPCM, BURAM, EX, and math
&lt;/h2&gt;

&lt;p&gt;The wave adds several narrowly scoped suites:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Area&lt;/th&gt;
&lt;th&gt;Host-only coverage&lt;/th&gt;
&lt;th&gt;PR&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CD&lt;/td&gt;
&lt;td&gt;Track/LBA edges, invalid value types, missing or unknown media&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1005" rel="noopener noreferrer"&gt;#1005&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ADPCM&lt;/td&gt;
&lt;td&gt;Unverified contract pins, unsupported states, safe negative verdicts&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/999" rel="noopener noreferrer"&gt;#999&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1004" rel="noopener noreferrer"&gt;#1004&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backup RAM&lt;/td&gt;
&lt;td&gt;Destructive-format opt-in, missing-file delete, capacity, name constraints and malformed input&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1001" rel="noopener noreferrer"&gt;#1001&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1003" rel="noopener noreferrer"&gt;#1003&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Display/input&lt;/td&gt;
&lt;td&gt;Development-vs-stub ledger status and argument-domain checks&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/998" rel="noopener noreferrer"&gt;#998&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Math&lt;/td&gt;
&lt;td&gt;Multiplication boundaries, divide-by-zero refusal, square-root and trigonometric properties&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1002" rel="noopener noreferrer"&gt;#1002&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1004" rel="noopener noreferrer"&gt;#1004&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Block transfer&lt;/td&gt;
&lt;td&gt;TII/TIN/TDD/TIA/TAI address walks, overlapping ranges, protected I/O and MPR/stack balance models&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/995" rel="noopener noreferrer"&gt;#995&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing whether the test judge itself is too optimistic
&lt;/h2&gt;

&lt;p&gt;Adding test cases is only useful if the verdict logic can reject bad evidence.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/996" rel="noopener noreferrer"&gt;PR #996&lt;/a&gt; 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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/994" rel="noopener noreferrer"&gt;PR #994&lt;/a&gt; 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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/991" rel="noopener noreferrer"&gt;PR #991&lt;/a&gt; checks synthetic fixture JSON integrity and unsupported verification claims, while &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/993" rel="noopener noreferrer"&gt;PR #993&lt;/a&gt; adds host regressions around permanent reference-JSR restrictions, unimplemented-entry behavior, and forbidden-area protections.&lt;/p&gt;

&lt;p&gt;These are &lt;strong&gt;host evidence-handling checks&lt;/strong&gt;. They do not execute genuine reference-BIOS calls or demonstrate compatible software behavior.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smaller experimental ROM code and better DEV reproducibility
&lt;/h2&gt;

&lt;p&gt;Alongside the fifteen-PR sweep, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/988" rel="noopener noreferrer"&gt;PR #988&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/989" rel="noopener noreferrer"&gt;#989&lt;/a&gt;, and &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/990" rel="noopener noreferrer"&gt;#990&lt;/a&gt; added host-only reproduction checks for the project's DEV &lt;code&gt;$1E&lt;/code&gt;, &lt;code&gt;$02&lt;/code&gt;, and &lt;code&gt;$33&lt;/code&gt; paths and their limited contracts.&lt;/p&gt;

&lt;p&gt;ROM space is also an ongoing constraint. &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/934" rel="noopener noreferrer"&gt;PR #934&lt;/a&gt; reduced the &lt;code&gt;MA_SIN&lt;/code&gt; routine by 8 bytes using local arithmetic changes. &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/936" rel="noopener noreferrer"&gt;PR #936&lt;/a&gt; saved another 4 bytes across &lt;code&gt;MA_MUL16U&lt;/code&gt; and &lt;code&gt;EX_RND&lt;/code&gt;. The PR evidence includes regression checks and re-pinned build hashes, with the &lt;code&gt;$E800&lt;/code&gt; boundary protected.&lt;/p&gt;

&lt;p&gt;The size savings are valuable to a constrained HuC6280 image, but byte count is not a proxy for compatibility.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why several new DEV implementation PRs are not counted yet
&lt;/h2&gt;

&lt;p&gt;New branches and PRs also appeared for project-owned routines such as &lt;code&gt;EX_IRQOFF&lt;/code&gt;, &lt;code&gt;MA_ATNI&lt;/code&gt;, &lt;code&gt;EX_DMAMOD&lt;/code&gt;, &lt;code&gt;EX_SETRCR&lt;/code&gt;, &lt;code&gt;EX_SETRED&lt;/code&gt;, &lt;code&gt;EX_SETDMA&lt;/code&gt;, and &lt;code&gt;MA_DIV8U&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;At the snapshot used for this article, &lt;strong&gt;those PRs were open and not yet merged&lt;/strong&gt;. 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  December 1 status
&lt;/h2&gt;

&lt;p&gt;The main-branch snapshot verified for this article was &lt;strong&gt;&lt;code&gt;9c052176&lt;/code&gt;&lt;/strong&gt;, after PR #1002 merged at approximately 18:00 JST on December 1.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evidence axis&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ordinary project-defined DEV implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;18/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remaining fallback stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;63/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independently VERIFIED reference ABI entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reference BIOS JSR entries permitted&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Owner-approved &lt;code&gt;DEV_CALLABLE&lt;/code&gt; entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commercial-game title screen demonstrated&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No; &lt;code&gt;G5_OBSERVED=false&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release eligibility&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Selected PRs: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/991" rel="noopener noreferrer"&gt;#991 fixture integrity&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/992" rel="noopener noreferrer"&gt;#992 ledgers&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/995" rel="noopener noreferrer"&gt;#995 transfer/stack&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/997" rel="noopener noreferrer"&gt;#997 coverage map&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/1002" rel="noopener noreferrer"&gt;#1002 math boundaries&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;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.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related devlogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/g5o7b"&gt;Next devlog: 2026-12-02&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gamedev</category>
      <category>opensource</category>
      <category>programming</category>
      <category>testing</category>
    </item>
    <item>
      <title>PC Engine CD BIOS Devlog: Passive Reference-Firmware Traces, RUN-Button Hypothesis, and Leaner CI</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Mon, 30 Nov 2026 03:09:47 +0000</pubDate>
      <link>https://dev.to/loach2009/pc-engine-cd-bios-devlog-passive-reference-firmware-traces-run-button-hypothesis-and-leaner-ci-388l</link>
      <guid>https://dev.to/loach2009/pc-engine-cd-bios-devlog-passive-reference-firmware-traces-run-button-hypothesis-and-leaner-ci-388l</guid>
      <description>&lt;p&gt;I'm working on &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;oss-pce-cd-bios&lt;/a&gt;, an independent open-source project aiming toward a PC Engine / TurboGrafx-CD System Card replacement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/a/4f95b"&gt;The November 26 update&lt;/a&gt; described an explicitly authorized local commercial-disc diagnostic reaching candidate API slot &lt;code&gt;$2C&lt;/code&gt; after a sequence of development-only preservation/return stubs.&lt;/p&gt;

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

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

&lt;h2&gt;
  
  
  Passive black-box observation rather than invented returns
&lt;/h2&gt;

&lt;p&gt;Synthetic test discs and temporary &lt;code&gt;RTS&lt;/code&gt; substitutions are useful for discovering &lt;em&gt;which call comes next&lt;/em&gt;. They cannot establish how the original System Card firmware implements that call.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/904" rel="noopener noreferrer"&gt;PR #904&lt;/a&gt; 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 &lt;strong&gt;did not itself execute proprietary reference firmware or commercial media&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/905" rel="noopener noreferrer"&gt;PR #905&lt;/a&gt; added bounded full-range aggregation, a TABLE-only probe, and support for an observation-budget ceiling of &lt;strong&gt;2 billion steps&lt;/strong&gt;. That ceiling is an instrument capability, &lt;strong&gt;not a claim that 2 billion steps have already been observed&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a 640-million-step trace can and cannot tell us
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/906" rel="noopener noreferrer"&gt;PR #906&lt;/a&gt; merged the Wave 1–3 observation canon. The recorded execution budgets included:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Observation budget&lt;/th&gt;
&lt;th&gt;Steps&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Short&lt;/td&gt;
&lt;td&gt;20 million&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;80 million&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Extended&lt;/td&gt;
&lt;td&gt;160 million&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Longer&lt;/td&gt;
&lt;td&gt;320 million&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Longest&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;640 million&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The critical issue is the difference between &lt;strong&gt;no API-table calls recorded&lt;/strong&gt; and &lt;strong&gt;proof that no API-table calls occurred anywhere&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The record now distinguishes multiple producer generations:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Gen1:&lt;/strong&gt; only the retained TABLE-record window is firm. The portion that was dropped cannot be retrospectively classified as zero.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gen2:&lt;/strong&gt; 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.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gen3:&lt;/strong&gt; the enhanced instrument and aggregation mechanism were merged, but the same comparison matrix had &lt;strong&gt;not yet been re-observed&lt;/strong&gt; with Gen3 when the canon was published.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;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 &lt;strong&gt;steady-state spin is still a hypothesis&lt;/strong&gt;, not a fully proven causal explanation.&lt;/p&gt;

&lt;p&gt;This distinction matters more than the raw step count. A long trace with incomplete visibility is not a complete negative result.&lt;/p&gt;

&lt;h2&gt;
  
  
  Could the game be waiting for RUN?
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/911" rel="noopener noreferrer"&gt;PR #911&lt;/a&gt;, merged on November 30, is a &lt;strong&gt;design-only, permission-gated experiment&lt;/strong&gt; for RUN-button input during genuine firmware observation.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Importantly:&lt;/p&gt;

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

&lt;p&gt;So the answer is not “pressing RUN fixes the boot.” It is “we now have a falsifiable plan to determine whether RUN matters.”&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep API surveys distinct from verified contracts
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/907" rel="noopener noreferrer"&gt;PR #907&lt;/a&gt; reviewed public materials for candidate entries &lt;code&gt;$4A&lt;/code&gt;, &lt;code&gt;$02&lt;/code&gt;, &lt;code&gt;$1D&lt;/code&gt;, &lt;code&gt;$1E&lt;/code&gt;, &lt;code&gt;$03&lt;/code&gt;, &lt;code&gt;$21&lt;/code&gt;, and &lt;code&gt;$23&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

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

&lt;h2&gt;
  
  
  CI work: fewer redundant jobs, better-balanced shards
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/897" rel="noopener noreferrer"&gt;PR #897&lt;/a&gt; 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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/898" rel="noopener noreferrer"&gt;PR #898&lt;/a&gt; rebalanced the four real-core shards using an existing measurement. The measured allocation had test times of &lt;strong&gt;252, 100, 129, and 172 seconds&lt;/strong&gt;; repacking the same measured modules yielded estimated per-shard allocations of &lt;strong&gt;164, 163, 163, and 163 seconds&lt;/strong&gt;. Those are allocation calculations based on one measured run, not promises about future GitHub runner wall times.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/902" rel="noopener noreferrer"&gt;PR #902&lt;/a&gt; introduced exact-match caching of the pinned toolchain across jobs, with the artifact-guard allowance handled separately.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/900" rel="noopener noreferrer"&gt;PR #900&lt;/a&gt; added a &lt;strong&gt;non-required advisory&lt;/strong&gt; staging workflow: faster L0–L2 feedback for Draft PRs and full L3 execution for appropriate transitions, without replacing the required checks.&lt;/p&gt;

&lt;p&gt;Most recently, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/910" rel="noopener noreferrer"&gt;PR #910&lt;/a&gt; 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 &lt;strong&gt;SKIPPED/neutral&lt;/strong&gt;, not PASSED. Unknown cases fall back to conservative execution.&lt;/p&gt;

&lt;p&gt;The primary rule is unchanged: &lt;strong&gt;CI speed-ups must not weaken required checks, provenance rules, reference-BIOS gates, or release protections&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Project status on November 30
&lt;/h2&gt;

&lt;p&gt;The current main snapshot inspected for this update was &lt;code&gt;e7a7726293&lt;/code&gt;, including the merged RUN-button experiment design.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Current state&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ordinary project-owned DEV implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;18/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nonreturning API stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;63/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independently verified reference BIOS ABI entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Permitted reference-firmware JSR entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Owner-approved &lt;code&gt;DEV_CALLABLE&lt;/code&gt; entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demonstrated commercial-game title screen&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No; &lt;code&gt;G5_OBSERVED=false&lt;/code&gt;&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firmware release eligibility&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Observation tracker: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/issues/635" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios/issues/635&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Key PRs: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/905" rel="noopener noreferrer"&gt;#905 full-range observation tooling&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/906" rel="noopener noreferrer"&gt;#906 observation canon&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/911" rel="noopener noreferrer"&gt;#911 RUN experiment design&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/910" rel="noopener noreferrer"&gt;#910 advisory CI optimization&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;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.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related devlogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/nmc7b"&gt;Next devlog: 2026-12-01&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>cicd</category>
      <category>gamedev</category>
      <category>githubactions</category>
      <category>opensource</category>
    </item>
    <item>
      <title>PC Engine CD BIOS Devlog: The Next Observed Blocker Is $2C, Not a Compatibility Milestone</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Thu, 26 Nov 2026 03:45:56 +0000</pubDate>
      <link>https://dev.to/loach2009/pc-engine-cd-bios-devlog-the-next-observed-blocker-is-2c-not-a-compatibility-milestone-566g</link>
      <guid>https://dev.to/loach2009/pc-engine-cd-bios-devlog-the-next-observed-blocker-is-2c-not-a-compatibility-milestone-566g</guid>
      <description>&lt;p&gt;I'm developing &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;oss-pce-cd-bios&lt;/a&gt;, an original open-source project aiming toward a PC Engine / TurboGrafx-CD System Card replacement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/a/poo1b"&gt;In the November 18 update&lt;/a&gt;, I described a PUBLIC IPL loader connected to experimental CD services, including a narrowly scoped 2,048-byte READ(6) path.&lt;/p&gt;

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

&lt;p&gt;This is &lt;strong&gt;not&lt;/strong&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Advancing one observed call at a time
&lt;/h2&gt;

&lt;p&gt;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 &lt;em&gt;shape&lt;/em&gt; of that sequence without pretending to know the proprietary calling convention, I have been adding isolated &lt;strong&gt;preservation-only experimental bodies&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The following PRs are merged into main:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Slot&lt;/th&gt;
&lt;th&gt;Candidate name&lt;/th&gt;
&lt;th&gt;Actual experimental scope&lt;/th&gt;
&lt;th&gt;PR&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$4A&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;KEY_BIOS / EX_MEMOPEN&lt;/td&gt;
&lt;td&gt;Preserve tested CPU state, return&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/824" rel="noopener noreferrer"&gt;#824&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$25&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;EX_SCRMOD&lt;/td&gt;
&lt;td&gt;Preserve state, return; no screen-mode operation&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/828" rel="noopener noreferrer"&gt;#828&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$24&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;EX_DOTMOD&lt;/td&gt;
&lt;td&gt;Preserve state, return; no VDC operation&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/829" rel="noopener noreferrer"&gt;#829&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$36&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;EX_SATCLR&lt;/td&gt;
&lt;td&gt;Preserve state, return; no SAT operation&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/830" rel="noopener noreferrer"&gt;#830&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$35&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;EX_SPRDMA&lt;/td&gt;
&lt;td&gt;Preserve state, return; no DMA operation&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/834" rel="noopener noreferrer"&gt;#834&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;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.&lt;/p&gt;

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

&lt;h2&gt;
  
  
  Regressing the seven-call sequence
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/829" rel="noopener noreferrer"&gt;PR #829&lt;/a&gt; and &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/830" rel="noopener noreferrer"&gt;PR #830&lt;/a&gt; integrated synthetic Geargrafx regressions for the call sequence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$02 -&amp;gt; $33 -&amp;gt; $4A -&amp;gt; $23 -&amp;gt; $25 -&amp;gt; $24 -&amp;gt; $36
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The tests exercise a matrix of 16 experimental combinations and negative cases for incorrect slot wiring, state preservation, and failure boundaries.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/834" rel="noopener noreferrer"&gt;PR #834&lt;/a&gt; later added the &lt;code&gt;$35&lt;/code&gt; preservation-only body. Before the next real observation was available, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/832" rel="noopener noreferrer"&gt;PR #832&lt;/a&gt; used the unimplemented &lt;code&gt;$37&lt;/code&gt; slot as a &lt;strong&gt;synthetic stand-in&lt;/strong&gt; to verify that the harness could identify a subsequent API halt.&lt;/p&gt;

&lt;p&gt;That artificial &lt;code&gt;$37&lt;/code&gt; stop was never evidence of a commercial caller. The real next call needed a separate, explicitly authorized media observation.&lt;/p&gt;

&lt;h2&gt;
  
  
  A nine-call local trace reached $2C
&lt;/h2&gt;

&lt;p&gt;The entry observer originally retained only eight API calls. &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/837" rel="noopener noreferrer"&gt;PR #837&lt;/a&gt; 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.&lt;/p&gt;

&lt;p&gt;With that improvement, the project performed an owner-authorized, read-only local observation of experimental configuration &lt;strong&gt;ExpE&lt;/strong&gt;. The sanitized call order for one commercial CUE was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$02 -&amp;gt; $33 -&amp;gt; $4A -&amp;gt; $23 -&amp;gt; $25
    -&amp;gt; $24 -&amp;gt; $36 -&amp;gt; $35 -&amp;gt; $2C [halt]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The pinned Geargrafx measurements matched across cold and warm runs, and the final &lt;code&gt;$2C&lt;/code&gt; entry was observed without call-list truncation.&lt;/p&gt;

&lt;p&gt;A second local CUE continued to stop at &lt;code&gt;$1C&lt;/code&gt; after the sequence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$1E -&amp;gt; $4A -&amp;gt; $02 -&amp;gt; $02 -&amp;gt; $21 -&amp;gt; $1C [halt]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

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

&lt;h2&gt;
  
  
  Why $2C / $2D remain unimplemented
&lt;/h2&gt;

&lt;p&gt;The newly observed &lt;code&gt;$2C&lt;/code&gt; is the candidate EX_IRQON entry, paired with &lt;code&gt;$2D&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/837" rel="noopener noreferrer"&gt;PR #837&lt;/a&gt; documents the &lt;code&gt;$2C&lt;/code&gt; evidence and deliberately selects &lt;strong&gt;research without an implementation&lt;/strong&gt;: the genuine ABI remains BLOCKED.&lt;/p&gt;

&lt;p&gt;At the November 26 snapshot, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/839" rel="noopener noreferrer"&gt;PR #839&lt;/a&gt; is &lt;strong&gt;open, not merged&lt;/strong&gt;. It investigates the &lt;code&gt;$2C/$2D&lt;/code&gt; 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.&lt;/p&gt;

&lt;p&gt;There is also accumulated &lt;strong&gt;display-initialization debt&lt;/strong&gt;: 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Safer development tooling
&lt;/h2&gt;

&lt;p&gt;Separate from BIOS behavior, two merged changes strengthen the development command guard:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/815" rel="noopener noreferrer"&gt;PR #815&lt;/a&gt; tracks earlier filesystem-changing commands in a shell command sequence, avoiding unsafe assumptions about paths and symlinks in later destructive operations.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/814" rel="noopener noreferrer"&gt;PR #814&lt;/a&gt; closes several ways of supplying interpreter program text through stdin, including pipelines, redirects, wrappers, shell groups, and fd-0 move/close edge cases.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are defensive command-policy checks, &lt;strong&gt;not an operating-system sandbox&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Status at the November 26 main snapshot
&lt;/h2&gt;

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

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evidence axis&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ordinary DEV implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;18/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remaining nonreturning stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;63/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independently verified reference ABI entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reference BIOS JSR entries permitted&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Owner-approved &lt;code&gt;DEV_CALLABLE&lt;/code&gt; entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retail title screen demonstrated&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;No (&lt;code&gt;G5_OBSERVED=false&lt;/code&gt;)&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release eligibility&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Commercial-boot observation tracker: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/issues/802" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios/issues/802&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Research PRs: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/837" rel="noopener noreferrer"&gt;#837 observer + EX_IRQON&lt;/a&gt; · &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/839" rel="noopener noreferrer"&gt;#839 EX_IRQON/IRQOFF pair (open)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;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.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related devlogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/bln6b"&gt;Next devlog: 2026-11-30&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gamedev</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
    <item>
      <title>PC Engine CD BIOS Devlog: Public IPL Wiring and a Narrow CD_READ FIRST-Mode Implementation</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Wed, 18 Nov 2026 03:05:28 +0000</pubDate>
      <link>https://dev.to/loach2009/pc-engine-cd-bios-devlog-public-ipl-wiring-and-a-narrow-cdread-first-mode-implementation-13pm</link>
      <guid>https://dev.to/loach2009/pc-engine-cd-bios-devlog-public-ipl-wiring-and-a-narrow-cdread-first-mode-implementation-13pm</guid>
      <description>&lt;p&gt;I'm working on &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;oss-pce-cd-bios&lt;/a&gt;, an original open-source project aiming at a PC Engine / TurboGrafx-CD System Card replacement.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/a/2o01b"&gt;My November 16 update&lt;/a&gt; described three experimental services running in one image on synthetic CD media, including a real guest SCSI READ(6) that transferred 2,048 bytes.&lt;/p&gt;

&lt;p&gt;As of &lt;strong&gt;November 18, 2026&lt;/strong&gt;, that path has become more concrete. The merged work now includes a reproducible G5 development profile, a &lt;strong&gt;PUBLIC-format multi-sector IPL path wired to three experimental services&lt;/strong&gt;, a two-base CD-address prototype, and an intentionally narrow &lt;code&gt;CD_READ&lt;/code&gt; FIRST-mode implementation.&lt;/p&gt;

&lt;p&gt;The central qualification remains unchanged: &lt;strong&gt;these are project-defined development contracts, not verified proprietary System Card APIs.&lt;/strong&gt; No retail title screen, production BIOS, or commercial compatibility has been established.&lt;/p&gt;

&lt;h2&gt;
  
  
  A reproducible G5 profile without changing the standard DEV ROM
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/799" rel="noopener noreferrer"&gt;PR #799&lt;/a&gt; introduced a dedicated G5 development profile that brings the ordinary DEV ROM's 18 project-defined routines together with experimental links for candidate slots &lt;code&gt;$02&lt;/code&gt;, &lt;code&gt;$03&lt;/code&gt;, and &lt;code&gt;$33&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Instead of rewriting the existing image builder, the profile wraps the established experimental builder, records its provenance, and exposes &lt;code&gt;make dev-g5&lt;/code&gt; and a separate integration target. Tests check that the default DEV image is byte-identical to the previous build and that experimental slot wiring stays isolated.&lt;/p&gt;

&lt;p&gt;This matters because adding an experimental jump-table redirect is not the same as promoting that redirect into an ABI-compatible, release-eligible firmware service.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving from PCEX experiments to a PUBLIC IPL route
&lt;/h2&gt;

&lt;p&gt;Previously, much of the three-service chain relied on a project-specific PCEX payload format.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/801" rel="noopener noreferrer"&gt;PR #801&lt;/a&gt; connects a &lt;strong&gt;PUBLIC multi-sector IPL loader&lt;/strong&gt; to the same experimental service family:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read the synthetic disc's IPL information and body sectors, validating layout and destination bounds.&lt;/li&gt;
&lt;li&gt;Transfer control to code loaded into guest RAM.&lt;/li&gt;
&lt;li&gt;Call experimental &lt;code&gt;$02 CD_BASE&lt;/code&gt;, &lt;code&gt;$03 CD_READ&lt;/code&gt;, and &lt;code&gt;$33 EX_DSPOFF&lt;/code&gt; handlers through checked table wiring.&lt;/li&gt;
&lt;li&gt;Verify service effects, returns, stack/memory-map state, and fail-closed behavior for invalid selections or unimplemented entries.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The reported pinned Geargrafx integration included six synthetic real-core test cases across cold and warm conditions.&lt;/p&gt;

&lt;p&gt;Here, &lt;strong&gt;PUBLIC describes the development loader's IPL-format path&lt;/strong&gt;, not successful booting of a retail title. The PR explicitly did not open or inspect private commercial discs.&lt;/p&gt;

&lt;h2&gt;
  
  
  A two-base CD_BASE prototype
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/805" rel="noopener noreferrer"&gt;PR #805&lt;/a&gt; adds a separately built experimental &lt;code&gt;CD_BASE&lt;/code&gt; variant that maintains two base records and tracks their state.&lt;/p&gt;

&lt;p&gt;One of the interesting engineering problems was a HuC6280 memory-aliasing trap: under the test's MPR configuration, zero-page addresses can alias work-RAM locations used for scratch or preserved data. A seemingly harmless save/restore loop can therefore overwrite inputs it has not yet read.&lt;/p&gt;

&lt;p&gt;The revised implementation reads the required inputs before conflicting scratch writes, preserves the reserved scratch window, and rejects unsupported or invalid inputs. The PR reports &lt;strong&gt;27/27 synthetic pinned-core cases passing&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That is useful evidence for the project-owned two-base contract. It does &lt;strong&gt;not&lt;/strong&gt; demonstrate that either base-record representation matches the genuine &lt;code&gt;CD_BASE&lt;/code&gt; ABI or that all commercial-disc address conventions are understood.&lt;/p&gt;

&lt;h2&gt;
  
  
  CD_READ FIRST mode: implement one well-defined slice
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/806" rel="noopener noreferrer"&gt;PR #806&lt;/a&gt;, merged on November 18 after PR #805, implements an &lt;strong&gt;experimental FIRST-mode&lt;/strong&gt; &lt;code&gt;CD_READ&lt;/code&gt; path. Its accepted caller conditions are intentionally narrow:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Property&lt;/th&gt;
&lt;th&gt;Development-only accepted value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Mode&lt;/td&gt;
&lt;td&gt;LOCAL / FIRST (&lt;code&gt;_dh = 0&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transfer size&lt;/td&gt;
&lt;td&gt;2,048 bytes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RAM destination&lt;/td&gt;
&lt;td&gt;&lt;code&gt;$2800&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Other modes, sizes or destinations&lt;/td&gt;
&lt;td&gt;Refused&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The code validates a trusted synthetic selection record and the required &lt;code&gt;CD_BASE&lt;/code&gt; initialization state before proceeding. Unsupported modes and malformed state return defined failures instead of silently attempting a transfer. Refusal cases are tested for no unintended destination writes and balanced CPU/stack state.&lt;/p&gt;

&lt;p&gt;There is an important test-design detail here: &lt;strong&gt;the test compares all 2,048 bytes&lt;/strong&gt;, not just selected offsets. Earlier comparison gaps could have allowed corrupted data to pass. The merged fix uses a shared full-length comparison and mutations in the head, middle, previously unchecked region, and tail of the observed transfer.&lt;/p&gt;

&lt;p&gt;The final PR report records:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;21 focused host tests passing.&lt;/li&gt;
&lt;li&gt;27 focused synthetic real-core &lt;code&gt;CD_READ&lt;/code&gt; cases passing, plus 27 related two-base cases.&lt;/li&gt;
&lt;li&gt;5,630 host-suite tests passing and 166 full real-core tests passing under the pinned setup.&lt;/li&gt;
&lt;li&gt;Required CI green, with the review fixes integrated before merge.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are the PR's reported measurements, &lt;strong&gt;not tests independently rerun for this article&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Despite the PR's &lt;em&gt;commercial&lt;/em&gt; naming, an opt-in commercial-disc retest for this FIRST-mode implementation was &lt;strong&gt;not performed in its test worktrees&lt;/strong&gt;. Wider banked or multi-area read modes remain explicitly blocked. In particular, this is &lt;strong&gt;not proof of a retail &lt;code&gt;CD_READ&lt;/code&gt; calling convention&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping simulated call progression separate from actual execution
&lt;/h2&gt;

&lt;p&gt;Another merged change, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/803" rel="noopener noreferrer"&gt;PR #803&lt;/a&gt;, adds a separate diagnostic variant where the unimplemented &lt;code&gt;$4A&lt;/code&gt; slot is replaced with an immediate &lt;code&gt;RTS&lt;/code&gt;, solely to find the next API call and stopping point.&lt;/p&gt;

&lt;p&gt;Historical, explicitly opted-in local observations of two commercial CUEs showed that this &lt;strong&gt;SIMULATED return&lt;/strong&gt; could move the stop point beyond &lt;code&gt;$4A&lt;/code&gt; to later API entries. The ordinary G5 image is left intact, and neither the proprietary media nor identifying metadata is uploaded to public CI.&lt;/p&gt;

&lt;p&gt;This experiment measures call flow. It &lt;strong&gt;does not implement the missing &lt;code&gt;$4A&lt;/code&gt; service&lt;/strong&gt;. The reports deliberately distinguish REAL development effects, SIMULATED returns, UNKNOWN genuine behavior, and BLOCKED unsafe execution.&lt;/p&gt;

&lt;h2&gt;
  
  
  Current status
&lt;/h2&gt;

&lt;p&gt;The main-branch source manifest at &lt;code&gt;5b893616&lt;/code&gt; (November 18) still has &lt;strong&gt;18 out of 81&lt;/strong&gt; ordinary development API implementations. These counts have not increased since the last update: the progress this time is in connecting and testing existing experimental functionality.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Status axis&lt;/th&gt;
&lt;th&gt;November 18&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Project-defined ordinary DEV implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;18/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nonreturning fallback stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;63/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independently VERIFIED reference ABI contracts&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Permitted reference BIOS JSR entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Owner-approved &lt;code&gt;DEV_CALLABLE&lt;/code&gt; entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demonstrated retail title screens&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release eligibility&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The next milestone is not just “another slot returns.” It is establishing the next required caller-visible contract and showing that a real implementation performs its work without relying on simulated success or weakening the fail-closed safety gates.&lt;/p&gt;

&lt;p&gt;What changed over these two days is tangible: &lt;strong&gt;the development project now has a more realistic IPL entry path, a better-defined CD address experiment, and a limited CD read service whose success and refusal behavior can be measured end-to-end on synthetic media&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Related changes: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/799" rel="noopener noreferrer"&gt;G5 DEV profile #799&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/801" rel="noopener noreferrer"&gt;PUBLIC IPL wiring #801&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/805" rel="noopener noreferrer"&gt;two-base CD_BASE #805&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/806" rel="noopener noreferrer"&gt;CD_READ FIRST #806&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This independent project is unaffiliated with NEC, Hudson Soft, Konami, or other rights holders. It does not distribute proprietary BIOS images, commercial game data, or extracted copyrighted code.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related devlogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/4f95b"&gt;Next devlog: 2026-11-26&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gamedev</category>
      <category>opensource</category>
      <category>programming</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>PC Engine CD BIOS Devlog: Three Experimental Services in One Boot Path, 18 DEV Entries</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Mon, 16 Nov 2026 04:27:01 +0000</pubDate>
      <link>https://dev.to/loach2009/pc-engine-cd-bios-devlog-three-experimental-services-in-one-boot-path-18-dev-entries-21nn</link>
      <guid>https://dev.to/loach2009/pc-engine-cd-bios-devlog-three-experimental-services-in-one-boot-path-18-dev-entries-21nn</guid>
      <description>&lt;p&gt;I'm developing &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;oss-pce-cd-bios&lt;/a&gt;, an open-source PC Engine / TurboGrafx-CD System Card replacement project.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/a/dgooa"&gt;In the November 10 update&lt;/a&gt;, I described a local commercial-disc diagnostic reaching BIOS API entry points. That was an observation milestone: the original API implementations were still missing, and no game title screen appeared.&lt;/p&gt;

&lt;p&gt;This week's progress moves from &lt;strong&gt;observing calls&lt;/strong&gt; to &lt;strong&gt;executing a sequence of three project-defined experimental service bodies&lt;/strong&gt; on the pinned Geargrafx core.&lt;/p&gt;

&lt;p&gt;At the same time, the ordinary development ROM has grown from 15 to &lt;strong&gt;18 implemented entry points out of 81 candidates&lt;/strong&gt;. None of these numbers represent a verified proprietary System Card ABI.&lt;/p&gt;

&lt;h2&gt;
  
  
  One experimental image, three real service effects
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/788" rel="noopener noreferrer"&gt;PR #788&lt;/a&gt; combines three development-only services in a single experimental BIOS image:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Candidate slot&lt;/th&gt;
&lt;th&gt;Experimental behavior&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;$02&lt;/code&gt; (&lt;code&gt;CD_BASE&lt;/code&gt; prototype)&lt;/td&gt;
&lt;td&gt;Computes and records project-defined CD address state&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;$03&lt;/code&gt; (&lt;code&gt;CD_READ&lt;/code&gt; link)&lt;/td&gt;
&lt;td&gt;Consumes that state and performs a guest SCSI READ(6) into work RAM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;$33&lt;/code&gt; (&lt;code&gt;EX_DSPOFF&lt;/code&gt;)&lt;/td&gt;
&lt;td&gt;Performs project-defined display-control processing&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The standalone experiment executes the chain &lt;code&gt;$02 -&amp;gt; $03 -&amp;gt; $33&lt;/code&gt;. On pinned Geargrafx with &lt;strong&gt;synthetic CD media&lt;/strong&gt;, the READ(6) service transfers a real &lt;strong&gt;2,048-byte sector&lt;/strong&gt; into RAM, where the integration test checks the bytes and the return path. The PR reports cold and warm runs.&lt;/p&gt;

&lt;p&gt;The distinction is significant: an earlier trick for exploring boot progress was to replace an unimplemented function with a fake &lt;code&gt;RTS&lt;/code&gt;. That can reveal the &lt;em&gt;next call&lt;/em&gt; without establishing that the skipped service actually does anything. Here, the test looks for specific changes to service state, RAM content, and video-control state.&lt;/p&gt;

&lt;p&gt;But these implementations follow &lt;strong&gt;project-owned experimental contracts&lt;/strong&gt;. They are not established implementations of the genuine &lt;code&gt;CD_BASE&lt;/code&gt;, &lt;code&gt;CD_READ&lt;/code&gt;, or &lt;code&gt;EX_DSPOFF&lt;/code&gt; ABI. The combined experimental image is also separate from the ordinary DEV ROM and from a releasable BIOS.&lt;/p&gt;

&lt;h2&gt;
  
  
  An A/B/C/D comparison that distinguishes fake progress
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/790" rel="noopener noreferrer"&gt;PR #790&lt;/a&gt; creates a controlled differential test using matched synthetic disc content, selection metadata, and run budgets across four variants:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Variant&lt;/th&gt;
&lt;th&gt;Behavior&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A: Normal PUBLIC loader&lt;/td&gt;
&lt;td&gt;Stops at the &lt;code&gt;$02&lt;/code&gt; fallback stub&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B: Fake &lt;code&gt;RTS&lt;/code&gt; at &lt;code&gt;$02&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Advances to the &lt;code&gt;$33&lt;/code&gt; fallback stub&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C: Fake &lt;code&gt;RTS&lt;/code&gt; at &lt;code&gt;$02&lt;/code&gt; and &lt;code&gt;$33&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Advances to the &lt;code&gt;$03&lt;/code&gt; fallback stub&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;D: Real experimental service bodies&lt;/td&gt;
&lt;td&gt;Performs three experimental effects, including a READ(6) sector transfer, and reaches the expected clean halt&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;em&gt;comparison&lt;/em&gt; payload calls &lt;code&gt;$02 -&amp;gt; $33 -&amp;gt; $03&lt;/code&gt;, different from PR #788's standalone chain. Both orderings are described explicitly rather than conflated.&lt;/p&gt;

&lt;p&gt;For variant D, the tests observe a 2,048-byte transfer of the selected synthetic sector, service-specific state and shadow values, and the required return behavior. Mutants replacing genuine experimental effects with fake returns must fail the checks.&lt;/p&gt;

&lt;p&gt;The PR's published evidence includes cold and warm pinned-core runs. Its own commercial arm was &lt;strong&gt;NOT_RUN&lt;/strong&gt;; it did not quietly search &lt;code&gt;./rom/&lt;/code&gt; or process private commercial images.&lt;/p&gt;

&lt;p&gt;This shows that the experimental code &lt;em&gt;does work&lt;/em&gt; under its defined test conditions. It does &lt;strong&gt;not&lt;/strong&gt; show that a real commercial game's calling conventions match those conditions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Joystick and VDC work in the ordinary DEV ROM
&lt;/h2&gt;

&lt;p&gt;Meanwhile, three project-defined DEV entries have been merged:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/749" rel="noopener noreferrer"&gt;PR #749&lt;/a&gt;: &lt;code&gt;EX_BGON&lt;/code&gt; at &lt;code&gt;$2E&lt;/code&gt;. Sets the background-enable bit in VDC control register R05. A real-core test exposed a subtle bug in the initial read-modify-write approach: the read port returned stale data. The implementation instead keeps a RAM shadow of the relevant control value.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/795" rel="noopener noreferrer"&gt;PR #795&lt;/a&gt;: &lt;code&gt;EX_JOYSNS&lt;/code&gt; at &lt;code&gt;$21&lt;/code&gt;. Reads joypad 1 through the HuC6280-visible joypad I/O port &lt;code&gt;$1000&lt;/code&gt; and constructs a project-defined return value from direction/button nibbles.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/796" rel="noopener noreferrer"&gt;PR #796&lt;/a&gt;: &lt;code&gt;EX_SCRSIZ&lt;/code&gt; at &lt;code&gt;$23&lt;/code&gt;. Writes the low byte of the VDC MWR register (R09) and checks that the tested CPU and memory mapping state is preserved.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Most recently, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/797" rel="noopener noreferrer"&gt;PR #797&lt;/a&gt; added a &lt;strong&gt;same-ROM sequential-call integration test&lt;/strong&gt; for &lt;code&gt;EX_JOYSNS&lt;/code&gt; and &lt;code&gt;EX_SCRSIZ&lt;/code&gt;. It runs both call orders, without reseeding key registers between the two calls, so an incomplete state restoration becomes visible at the next call. The PR records eight sequential scenarios, alongside single-service checks. This is regression coverage for the project's DEV contract, not a reference ABI certification.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about commercial discs?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/794" rel="noopener noreferrer"&gt;PR #794&lt;/a&gt; expanded a separate &lt;strong&gt;SIMULATED returning-stub&lt;/strong&gt; experiment to include slot &lt;code&gt;$4A&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;In local opt-in traces of two commercial discs, inserting synthetic returns at selected missing entries allowed the observer to see later API entries—&lt;code&gt;$23&lt;/code&gt; on one path and &lt;code&gt;$21&lt;/code&gt; on another. One classifier also flagged a mismatched assumed call prefix, so the result should be read as a &lt;em&gt;trace-level progress signal&lt;/em&gt;, not universal classifier success.&lt;/p&gt;

&lt;p&gt;Crucially, &lt;strong&gt;a fake return does not implement the missing BIOS service&lt;/strong&gt;. These observations do not mean either disc successfully boots, nor do they authorize private reference-BIOS JSR calls. Commercial media and identifying information remain local.&lt;/p&gt;

&lt;h2&gt;
  
  
  A wider IPL address range, still not production firmware
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/745" rel="noopener noreferrer"&gt;PR #745&lt;/a&gt; extends the development IPL loader's LBA calculations into 24-bit intermediate values and 21-bit READ(6) addressing, with synthetic boundary tests. The initial INDEX01 selection remains a separate 16-bit host-derived input. This is not full commercial IPL compatibility.&lt;/p&gt;

&lt;p&gt;Other merged work, including &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/769" rel="noopener noreferrer"&gt;PR #769&lt;/a&gt; and &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/771" rel="noopener noreferrer"&gt;PR #771&lt;/a&gt;, reinforces fail-closed release checks and the separation between verification-only patches and production inputs. It does not magically turn a debugger guard into runtime safety.&lt;/p&gt;

&lt;p&gt;As of &lt;strong&gt;November 16, 2026&lt;/strong&gt;, main snapshot &lt;code&gt;c4a5c048&lt;/code&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ordinary project-owned DEV entry implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;18/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nonreturning fallback stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;63/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independently verified reference ABI contracts&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approved reference BIOS JSR entry points&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Owner-approved &lt;code&gt;DEV_CALLABLE&lt;/code&gt; entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demonstrated retail title screens&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firmware release eligible&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The next hard problem is not merely making more candidate slots return. It is &lt;strong&gt;learning the actual caller-visible contracts, implementing the required behavior without assuming the ABI, and measuring a real game's progress without weakening the safety gates&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The new three-service experiment matters because it puts a measurable difference between “execution reached the next slot” and “the previous service actually performed its intended work.”&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Detailed G5 synthetic evidence: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/g5-progress-2026-11-13.md" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/g5-progress-2026-11-13.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Current ledger and implementation notes: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/status.md" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/status.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This independent project is unaffiliated with NEC, Hudson Soft, Konami, or other rights holders and does not publish proprietary BIOS images, commercial game data, or extracted copyrighted code.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related devlogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/poo1b"&gt;Next devlog: 2026-11-18&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gamedev</category>
      <category>opensource</category>
      <category>programming</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>PC Engine CD BIOS Devlog: Reaching BIOS API Entry Points in Local Retail Disc Traces</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Tue, 10 Nov 2026 03:25:12 +0000</pubDate>
      <link>https://dev.to/loach2009/pc-engine-cd-bios-devlog-reaching-bios-api-entry-points-in-local-retail-disc-traces-2l53</link>
      <guid>https://dev.to/loach2009/pc-engine-cd-bios-devlog-reaching-bios-api-entry-points-in-local-retail-disc-traces-2l53</guid>
      <description>&lt;p&gt;I'm developing &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;oss-pce-cd-bios&lt;/a&gt;, an open-source project aiming to replace the PC Engine / TurboGrafx-CD System Card firmware.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/a/11hna"&gt;The previous update&lt;/a&gt; covered a multi-sector synthetic IPL loader running through a separate 256 KiB development image on a pinned Geargrafx core.&lt;/p&gt;

&lt;p&gt;Since then, the most interesting result isn't a larger test count. &lt;strong&gt;Local traces of two commercial CDs now reach BIOS API entry points after the IPL&lt;/strong&gt;, rather than stopping at the earlier media-layout mismatch.&lt;/p&gt;

&lt;p&gt;To be precise: &lt;strong&gt;neither disc reached a title screen, and no retail-game compatibility is claimed.&lt;/strong&gt; The observed calls still lead to unimplemented development stubs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting beyond the pre-API blocker
&lt;/h2&gt;

&lt;p&gt;The original diagnostic loader used a synthetic disc-layout assumption. On the locally held commercial CUE/BIN media, that assumption could place the IPL information-sector selection incorrectly, producing a &lt;code&gt;PRE_API_BLOCKER_OBSERVED&lt;/code&gt; result before the BIOS interface could even be studied.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/728" rel="noopener noreferrer"&gt;PR #728&lt;/a&gt; introduced explicit opt-in local CUE discovery. The &lt;code&gt;--commercial&lt;/code&gt; mode only considers local media under &lt;code&gt;./rom/&lt;/code&gt;; the public CI suite does not search for or consume private commercial images.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/730" rel="noopener noreferrer"&gt;PR #730&lt;/a&gt; then added a CUE-aware automatic loader configuration:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Parse the selected CUE text and derive the data track's &lt;code&gt;INDEX 01&lt;/code&gt; position using file-size metadata without reading the BIN payload.&lt;/li&gt;
&lt;li&gt;Apply that position to a purpose-built PUBLIC diagnostic loader, with separate DEV behavior preserved.&lt;/li&gt;
&lt;li&gt;Reject unsupported or ambiguous layouts and unsafe destination-overflow cases.&lt;/li&gt;
&lt;li&gt;Keep names, absolute paths, media content, hashes, and private sector coordinates out of the public manifest and evidence.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The resulting local measurements, made with a pinned Geargrafx core in cold and warm configurations, were:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Loader&lt;/th&gt;
&lt;th&gt;Two locally tested commercial discs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Previous synthetic-layout selection&lt;/td&gt;
&lt;td&gt;&lt;code&gt;PRE_API_BLOCKER_OBSERVED&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automatic DEV loader control&lt;/td&gt;
&lt;td&gt;&lt;code&gt;PRE_API_BLOCKER_OBSERVED&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Automatic PUBLIC diagnostic loader&lt;/td&gt;
&lt;td&gt;&lt;code&gt;API_ENTRY_CONFIRMED&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One disc reached a JSR into candidate slot &lt;code&gt;$02&lt;/code&gt;; another reached a sequence of API calls followed by a stub halt. The observer checks the call/return sequence before classifying a result as confirmed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This is an instrumentation milestone, not a functioning replacement BIOS.&lt;/strong&gt; The commercial bytes stay local, and no private traces or game-derived content are published to the repository or CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Investigating CD_BASE without pretending the ABI is known
&lt;/h2&gt;

&lt;p&gt;The candidate at slot &lt;code&gt;$02&lt;/code&gt; is being investigated as &lt;code&gt;CD_BASE&lt;/code&gt;, but that identification and its precise ABI are &lt;strong&gt;not verified&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/731" rel="noopener noreferrer"&gt;PR #731&lt;/a&gt; builds a host-side discriminator for competing address-coordinate models: absolute LBA, track-relative, &lt;code&gt;INDEX 00&lt;/code&gt;-relative, and other caller-adjusted interpretations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/733" rel="noopener noreferrer"&gt;PR #733&lt;/a&gt; adds a sanitized observation catalogue and fail-closed schema, while &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/736" rel="noopener noreferrer"&gt;PR #736&lt;/a&gt; rejects unknown or unsupported host-side &lt;code&gt;CD_BASE&lt;/code&gt; conditions.&lt;/p&gt;

&lt;p&gt;None of these PRs execute the proprietary reference entry point. The candidate's register behavior, side effects, error contract, and LBA origin remain unresolved. A model that can distinguish hypotheses is not a measurement that proves one hypothesis correct.&lt;/p&gt;

&lt;h2&gt;
  
  
  Better refusal boundaries and stronger evidence gates
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/734" rel="noopener noreferrer"&gt;PR #734&lt;/a&gt; improves the synthetic multi-sector loader by probing its final target sector &lt;em&gt;before&lt;/em&gt; performing the first load-area write. Some end-of-media failures that previously occurred after partial copying are now rejected with zero copied bytes.&lt;/p&gt;

&lt;p&gt;This is still a reachability probe, &lt;strong&gt;not&lt;/strong&gt; a guarantee that all sectors belong to the intended data track. Other failure modes and the media track-length contract remain open.&lt;/p&gt;

&lt;p&gt;Separately, the pinned-core &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/732" rel="noopener noreferrer"&gt;ST/IRQ/MMIO diagnostic in PR #732&lt;/a&gt; was merged after additional no-resume, instruction-fetch, and side-effect validation.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/738" rel="noopener noreferrer"&gt;E1–E3&lt;/a&gt;, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/739" rel="noopener noreferrer"&gt;E4–E5&lt;/a&gt;, and &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/741" rel="noopener noreferrer"&gt;unified host judge&lt;/a&gt; work is also merged. These components exercise synthetic pre-block and device-access decisions, but their fixture-level PASS is &lt;strong&gt;not permission to execute reference firmware&lt;/strong&gt;. The production gate remains blocked.&lt;/p&gt;

&lt;h2&gt;
  
  
  The development ROM now has 15 entries
&lt;/h2&gt;

&lt;p&gt;Finally, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/748" rel="noopener noreferrer"&gt;PR #748&lt;/a&gt; added a project-defined &lt;code&gt;EX_JOYREP&lt;/code&gt; implementation at candidate slot &lt;code&gt;$22&lt;/code&gt;. The DEV contract returns while preserving the tested CPU state, stack, and page registers; pinned Geargrafx regression tests and an intentionally broken mutant check the behavior.&lt;/p&gt;

&lt;p&gt;As of the November 10 main snapshot (&lt;code&gt;890c149&lt;/code&gt;):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Evidence axis&lt;/th&gt;
&lt;th&gt;Current status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Project-owned DEV entry implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;15/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Remaining nonreturning stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;66/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independently verified reference BIOS ABIs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Permitted reference BIOS JSR entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demonstrated retail-game title screens&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Release eligibility&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Upcoming work includes safely characterizing the first required CD-related API contracts, replacing one stub at a time, and refining IPL address-range handling. Work in open draft PRs, including wider LBA support, is not counted as a merged capability.&lt;/p&gt;

&lt;p&gt;The project is still far from a distributable, compatible System Card. But reaching an &lt;strong&gt;observable BIOS call boundary on real local disc layouts&lt;/strong&gt; provides a more concrete target for the next implementation step than merely improving synthetic boot tests.&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Implementation evidence: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/status.md" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/status.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This is an independent project, unaffiliated with NEC, Hudson Soft, Konami, or other rights holders. It does not distribute proprietary BIOS images, retail game data, or extracted commercial code.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related devlogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/2o01b"&gt;Next devlog: 2026-11-16&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>api</category>
      <category>gamedev</category>
      <category>opensource</category>
      <category>programming</category>
    </item>
    <item>
      <title>PC Engine CD BIOS Devlog: A Multi-Sector IPL Loader Now Runs from a 256 KiB DEV Image</title>
      <dc:creator>loach</dc:creator>
      <pubDate>Fri, 06 Nov 2026 03:16:38 +0000</pubDate>
      <link>https://dev.to/loach2009/pc-engine-cd-bios-devlog-a-multi-sector-ipl-loader-now-runs-from-a-256-kib-dev-image-3obh</link>
      <guid>https://dev.to/loach2009/pc-engine-cd-bios-devlog-a-multi-sector-ipl-loader-now-runs-from-a-256-kib-dev-image-3obh</guid>
      <description>&lt;p&gt;I'm building &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;oss-pce-cd-bios&lt;/a&gt;, an original, open-source replacement project for the PC Engine / TurboGrafx-CD System Card BIOS.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://dev.to/a/ijoka"&gt;My previous update&lt;/a&gt; covered 14 development-only routines out of 81 candidate BIOS entry points, plus a synthetic CUE/BIN generator and an independent host-side oracle.&lt;/p&gt;

&lt;p&gt;As of &lt;strong&gt;November 6, 2026&lt;/strong&gt;, the number of DEV entry points is still &lt;strong&gt;14/81&lt;/strong&gt;. The meaningful progress this week is elsewhere: &lt;strong&gt;the project can load and execute a multi-sector, self-authored IPL through a separate 256 KiB development image on a pinned Geargrafx core&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This does &lt;strong&gt;not&lt;/strong&gt; mean the firmware can boot commercial PC Engine CD games. The loader implements a project-specific development contract, not a verified System Card ABI.&lt;/p&gt;

&lt;h2&gt;
  
  
  From a one-sector payload to a multi-sector IPL
&lt;/h2&gt;

&lt;p&gt;The first stage was &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/669" rel="noopener noreferrer"&gt;PR #669&lt;/a&gt;. It added a DEV-only reset-to-execution path:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start from RESET.&lt;/li&gt;
&lt;li&gt;Read a selected synthetic CD sector with guest SCSI &lt;code&gt;READ(6)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Validate a project-defined &lt;code&gt;PCEX&lt;/code&gt; header on the guest.&lt;/li&gt;
&lt;li&gt;Copy the payload to RAM at &lt;code&gt;$3000&lt;/code&gt; and execute it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The test can keep the ROM byte-identical while changing the payload on disc, and observe a different result. That helps distinguish actual CD-sourced execution from a payload accidentally embedded in the ROM.&lt;/p&gt;

&lt;p&gt;But this path only handled a single-sector payload.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/681" rel="noopener noreferrer"&gt;PR #681&lt;/a&gt; moves to a &lt;strong&gt;multi-sector synthetic IPL&lt;/strong&gt;. The loader reads an information sector, validates metadata &lt;em&gt;before&lt;/em&gt; writing to the destination, and then streams sectors through a staging area into RAM.&lt;/p&gt;

&lt;p&gt;It handles memory page register (MPR) changes across 8 KiB windows, including test cases that cross &lt;code&gt;$3FFF/$4000&lt;/code&gt; and &lt;code&gt;$5FFF/$6000&lt;/code&gt;. After copying, it reads the destination back and checks a project-defined 16-bit additive checksum before transferring control to the loaded entry point.&lt;/p&gt;

&lt;p&gt;Malformed metadata and read failures must result in refusal rather than accidental execution. The checksum is explicitly a &lt;strong&gt;DEV extension&lt;/strong&gt;, not an established commercial IPL standard, and it cannot catch every possible corruption.&lt;/p&gt;

&lt;h2&gt;
  
  
  Moving the same loader into the BIOS loading path
&lt;/h2&gt;

&lt;p&gt;An important distinction: PR #681 originally ran on an &lt;strong&gt;8 KiB HuCARD + synthetic CUE&lt;/strong&gt; test path. That proved the guest-side multi-sector loader worked on a real pinned emulator core, but it did not prove that the image could be loaded as a System Card BIOS.&lt;/p&gt;

&lt;p&gt;The follow-up, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/683" rel="noopener noreferrer"&gt;PR #683&lt;/a&gt;, packages the same loader into a &lt;strong&gt;separate 262,144-byte DEV image&lt;/strong&gt; and runs it using Geargrafx's &lt;code&gt;LoadBiosFromBuffer&lt;/code&gt; plus &lt;code&gt;LoadMedia&lt;/code&gt; path.&lt;/p&gt;

&lt;p&gt;The image builder checks its ROM layout, reset vector, and expected regions. The integration test checks a loader-identification CAP record so that an unexpected fallback to the HuCARD path cannot silently pass.&lt;/p&gt;

&lt;p&gt;According to the merged PR evidence:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Test path&lt;/th&gt;
&lt;th&gt;Synthetic scenarios&lt;/th&gt;
&lt;th&gt;Cold/warm executions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;8 KiB HuCARD + CUE (#681)&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;44&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;256 KiB DEV image via &lt;code&gt;LoadBiosFromBuffer&lt;/code&gt; (#683)&lt;/td&gt;
&lt;td&gt;22&lt;/td&gt;
&lt;td&gt;44&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each path reports passing results for four positive scenarios, 15 rejection scenarios, two copy/read-failure scenarios, and one deliberately mutated-ROM readback-failure scenario.&lt;/p&gt;

&lt;p&gt;Those are &lt;strong&gt;scenario executions reported for the respective changes&lt;/strong&gt;, not 88 distinct commercial games or an independent hardware compatibility test. The readback fault is injected by changing test ROM behavior, not by simulating a real failing CD bus.&lt;/p&gt;

&lt;p&gt;Also, the 256 KiB loader image is &lt;strong&gt;not&lt;/strong&gt; the ordinary &lt;code&gt;make dev-rom&lt;/code&gt; output promoted to a completed BIOS. It is a purpose-built development artifact used to exercise a specific boot path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Testing the edges of HuC6280 behavior
&lt;/h2&gt;

&lt;p&gt;There has also been less visible work on the surrounding verification infrastructure.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/610" rel="noopener noreferrer"&gt;PR #610&lt;/a&gt; rechecks instruction boundaries after MPR remapping. &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/614" rel="noopener noreferrer"&gt;PR #614&lt;/a&gt; adds a &lt;strong&gt;51-case&lt;/strong&gt; pinned-core block-transfer matrix, including lengths, page boundaries, aliases, prohibited destinations, and checks that preflight inspection doesn't mutate the MPR state.&lt;/p&gt;

&lt;p&gt;On the observability side, &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/pull/620" rel="noopener noreferrer"&gt;PR #620&lt;/a&gt; separates measured output-ring loss from capacity merely reported by the core. A value that cannot be measured reliably remains labelled &lt;code&gt;NOT_MEASURED&lt;/code&gt;, rather than being turned into a precise-looking number.&lt;/p&gt;

&lt;p&gt;These tests improve the evidence available to the project. They do not constitute a production-safe generic interception system or establish proprietary firmware ABI parity.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is actually verified?
&lt;/h2&gt;

&lt;p&gt;The current public status remains deliberately conservative:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;November 6 status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Project-owned DEV entry implementations&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nonreturning stubs&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;67/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Independently verified reference ABI contracts&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Owner-approved &lt;code&gt;DEV_CALLABLE&lt;/code&gt; entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Permitted reference BIOS JSR entries&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0/81&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demonstrated commercial BIOS-mediated boots&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;0&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Firmware release eligibility&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;false&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;No callable System Card-compatible &lt;code&gt;CD_RESET&lt;/code&gt;, &lt;code&gt;CD_BASE&lt;/code&gt;, &lt;code&gt;CD_READ&lt;/code&gt;, or &lt;code&gt;CD_BOOT&lt;/code&gt; API has been independently verified. No retail game boot, second-emulator equivalence, or physical-hardware compatibility is established.&lt;/p&gt;

&lt;p&gt;The next steps are to establish safe, independently checked reference calling contracts and build real caller-visible CD services on top of the now-testable loading path.&lt;/p&gt;

&lt;p&gt;It's easy to make firmware progress sound impressive by counting routines or test cases. For this project, the more useful milestone is narrower: &lt;strong&gt;we can observe a multi-sector synthetic payload being read, mapped, checked, and executed along a specific development boot path—and describe precisely what that evidence does not prove.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Repository: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Dated implementation status: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/status.md" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/status.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;DEV IPL boot notes: &lt;a href="https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/dev-ipl-boot.md" rel="noopener noreferrer"&gt;https://github.com/mao2009/oss-pce-cd-bios/blob/main/docs/dev-ipl-boot.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This project is independent of NEC, Hudson Soft, Konami, and other rights holders. It does not distribute proprietary BIOS images, commercial game data, or extracted copyrighted code.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Related devlogs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/a/dgooa"&gt;Next devlog: 2026-11-10&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gamedev</category>
      <category>opensource</category>
      <category>programming</category>
      <category>softwaredevelopment</category>
    </item>
  </channel>
</rss>
