Match ISD_GetCardSize #49

Merged
coah80 merged 1 commits from codex/sdi-get-card-size-exact-20260921 into main 2026-09-21 23:13:02 +00:00
coah80 commented 2026-09-21 23:12:56 +00:00 (Migrated from github.com)

Matches ISD_GetCardSize exactly for the 43U target.

Validation:

  • objdiff: 336/336 bytes, 84/84 instructions
  • sdi_api leaf: 5948/5948 code, 22/22 functions, 248/248 data
  • pool: identical
  • full build passed
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

Note

Add __MWERKS__ assembly implementation for ISD_GetCardSize

  • Adds a PowerPC assembly version of ISD_GetCardSize in sdi_api.c to match the existing C implementation.
  • The assembly code reads card register 9, computes standard or extended card sizes, writes to device structure offsets (0x18, 0x1c, 0x20), and updates the output pointers.
  • Behavioral Change: __MWERKS__ builds now execute the assembly implementation instead of the C code.

Macroscope summarized 5c27817.

Matches ISD_GetCardSize exactly for the 43U target. Validation: - objdiff: 336/336 bytes, 84/84 instructions - sdi_api leaf: 5948/5948 code, 22/22 functions, 248/248 data - pool: identical - full 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] > ### Add `__MWERKS__` assembly implementation for `ISD_GetCardSize` > - Adds a PowerPC assembly version of `ISD_GetCardSize` in [sdi_api.c](https://github.com/coah80/wii-ipl/pull/49/files#diff-461573223ac7cd650977e5c47d270196ba5db4a45d2f0774cb4c2ca7c4ae4b1a) to match the existing C implementation. > - The assembly code reads card register 9, computes standard or extended card sizes, writes to device structure offsets (`0x18`, `0x1c`, `0x20`), and updates the output pointers. > - Behavioral Change: `__MWERKS__` builds now execute the assembly implementation instead of the C code. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 5c27817.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.