Match ChannelSelect layout builders #44

Merged
coah80 merged 2 commits from codex/channel-select-exact-20260921 into main 2026-09-21 22:50:23 +00:00
coah80 commented 2026-09-21 22:50:12 +00:00 (Migrated from github.com)

Summary

  • match ChannelSelect base, channel-move, and disk layout builders
  • restore the reference data/string layout and jump-table declarations

Validation

  • exact code: 22,616/25,668 bytes
  • exact functions: 97/102, up from 94/102
  • new exact functions: createBaseLayout, createChanMoveLayout, createDiskLayout
  • context diffs: 216/216, 188/188, and 168/168 instructions, all zero diffs
  • pool diff: identical, 98 strings
  • full 43U build passed
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

Note

Match ChannelSelect layout builders with explicit jump tables and string symbols

  • Converts the ChannelSelect::calcNormal dispatch table to an explicit 27-entry void-pointer array and ChannelSelect::updateDiskState to a seven-entry void-pointer array, both targeting fixed offsets within their functions.
  • Moves channel-pane, base-pane, clock-pane, asset, and sound string literals into individually addressed data symbols, then updates the static tables (mscChanPaneNames, mscBasePaneNames, mscUnk0PaneNames, mscClockPaneNames) to reference those symbols.
  • Updates prepare to load chanSel.ash and diskThum.ash via the new address-specific string symbols, and draw to load the clock-pane table from mscClockPaneNames.
  • Risk: jump-table entries target hardcoded offsets within calcNormal and updateDiskState; if those function bodies shift, the table targets in iplChannelSelect.cpp will need manual realignment.

Macroscope summarized 7b63614.

## Summary - match ChannelSelect base, channel-move, and disk layout builders - restore the reference data/string layout and jump-table declarations ## Validation - exact code: 22,616/25,668 bytes - exact functions: 97/102, up from 94/102 - new exact functions: createBaseLayout, createChanMoveLayout, createDiskLayout - context diffs: 216/216, 188/188, and 168/168 instructions, all zero diffs - pool diff: identical, 98 strings - full 43U build passed - DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d <!-- Macroscope's pull request summary starts here --> <!-- Macroscope will only edit the content between these invisible markers, and the markers themselves will not be visible in the GitHub rendered markdown. --> <!-- If you delete either of the start / end markers from your PR's description, Macroscope will append its summary at the bottom of the description. --> > [!NOTE] > ### Match `ChannelSelect` layout builders with explicit jump tables and string symbols > - Converts the `ChannelSelect::calcNormal` dispatch table to an explicit 27-entry void-pointer array and `ChannelSelect::updateDiskState` to a seven-entry void-pointer array, both targeting fixed offsets within their functions. > - Moves channel-pane, base-pane, clock-pane, asset, and sound string literals into individually addressed data symbols, then updates the static tables (`mscChanPaneNames`, `mscBasePaneNames`, `mscUnk0PaneNames`, `mscClockPaneNames`) to reference those symbols. > - Updates `prepare` to load `chanSel.ash` and `diskThum.ash` via the new address-specific string symbols, and `draw` to load the clock-pane table from `mscClockPaneNames`. > - Risk: jump-table entries target hardcoded offsets within `calcNormal` and `updateDiskState`; if those function bodies shift, the table targets in [iplChannelSelect.cpp](https://github.com/coah80/wii-ipl/pull/44/files#diff-57a9c22cf7a908ecb12d9e810b8d2baa6e65a7db16f68f99dda39556bcf26884) will need manual realignment. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 7b63614.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.