Skip to content

Restore the extended RAM size a save state was taken with - #33

Merged
bubio merged 1 commit into
mainfrom
fix/state-ext-ram
Oct 13, 2026
Merged

bubio merged 1 commit into
mainfrom
fix/state-ext-ram

Conversation

@bubio

@bubio bubio commented Oct 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • 拡張RAM なしで保存したステートを読み込むと、今ある拡張RAM を取り外すようにしました(これまでは残ったままで、本来なかった RAM がプログラムから見えていました)
  • 読み込み後にホストが設定を合わせられるよう、PC88.extRAMCards と C ABI b88_get_ext_ram_cards を追加しました(追加のみ)
  • 使う側: bubio/Bubilator88 の、ステート読み込み時に拡張RAM の容量とメモリウェイトを設定へ戻す変更

Test plan

  • swift test 全件合格(1046 件)。1MB→128KB、なし→128KB の読み込みテストを追加
  • 回帰テスト(scripts/regression_compare.py)20 件すべて合格
  • アプリでクイックセーブ・ロードし、拡張RAM の容量が保存時に戻ることを確認

🤖 Generated with Claude Code

Loading a state saved without extended RAM now takes out the RAM the
machine has, instead of leaving it there for the program to find. Adds
PC88.extRAMCards and b88_get_ext_ram_cards so a host can match its
setting to the restored machine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bubio
bubio merged commit 93a01c9 into main Oct 13, 2026
3 checks passed
@bubio
bubio deleted the fix/state-ext-ram branch October 13, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant