Match AddressEdit wiiid_utf16 #35

Merged
coah80 merged 1 commits from codex/address-edit-wiiid-20260921 into main 2026-09-21 22:27:14 +00:00
coah80 commented 2026-09-21 22:25:27 +00:00 (Migrated from github.com)

Adds the missing wiiid_utf16 body in src/scene/address/iplAddressEdit.cpp.

Validation:

  • objdiff: iplAddressEdit exact functions 21/94 -> 22/94
  • exact code 2,064/27,112 -> 2,232/27,112 (+168 bytes)
  • ctxdiff.py: 42/42 instructions, 0 diffs for wiiid_utf16
  • full 43U build passed
  • DOL SHA1: 26116613f624061ba99c8d1a299aaa6efa85670d

pool_diff.py was run; the current mine object has no .data section while the reference does, so it reports the pre-existing section mismatch rather than a new pool divergence.

Note

Implement AddressEdit::wiiid_utf16 decimal conversion routine

Adds the wiiid_utf16 routine to iplAddressEdit.cpp. It uses inline assembly and PowerPC register helpers to convert a 64-bit value to a null-terminated 16-character UTF-16 decimal string in a halfword buffer. Values shorter than 16 digits receive leading zeroes, while values with more than 16 digits contribute only the 16 least-significant decimal digits.

Macroscope summarized 16d9f96.

Adds the missing `wiiid_utf16` body in `src/scene/address/iplAddressEdit.cpp`. Validation: - `objdiff`: iplAddressEdit exact functions 21/94 -> 22/94 - exact code 2,064/27,112 -> 2,232/27,112 (+168 bytes) - `ctxdiff.py`: 42/42 instructions, 0 diffs for `wiiid_utf16` - full 43U build passed - DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d` `pool_diff.py` was run; the current mine object has no `.data` section while the reference does, so it reports the pre-existing section mismatch rather than a new pool divergence. <!-- 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] > ### Implement `AddressEdit::wiiid_utf16` decimal conversion routine > Adds the `wiiid_utf16` routine to [iplAddressEdit.cpp](https://github.com/coah80/wii-ipl/pull/35/files#diff-66a27b13bda271223ec7294c9e6377128492e75203c03479e31956da5d204bd1). It uses inline assembly and PowerPC register helpers to convert a 64-bit value to a null-terminated 16-character UTF-16 decimal string in a halfword buffer. Values shorter than 16 digits receive leading zeroes, while values with more than 16 digits contribute only the 16 least-significant decimal digits. > > <!-- Macroscope's review summary starts here --> > > <sup><a href="https://app.macroscope.com">Macroscope</a> summarized 16d9f96.</sup> > <!-- Macroscope's review summary ends here --> > <!-- Macroscope's pull request summary ends here -->
Sign in to join this conversation.