mirror of
https://github.com/pret/pmd-sky.git
synced 2026-11-12 22:11:53 -06:00
Two changes, of which the first is the one that matters.
CORRECTIONS -- 44 names already in the tree that the machine code
contradicts. Most are off-by-one slides through a contiguous run, where
each function carries its neighbour's name and every one looks locally
plausible:
- os_printf, 3 functions: OS_VsPrintf is byte-identical to OS_SPrintf,
and its stmdb sp!,{r0,r1,r2,r3} prologue is a variadic home-area
spill, which a va_list entry point does not emit.
- the DWC settings chain, 4 functions: SetIp -> SetNetMask ->
SetGateway -> SetDnsP -> SetDnsS.
- two snd chains and two swapped pairs, 2 functions each.
- the BSD socket block, 9 functions at 0x022CF1AC-0x022CF338: the
bodies are NitroWiFi's SOC_* API, not BSD sockets. SocketBind and
SocketSendTo are the real bind and sendto, so two targets are names
the other rows vacate; the group is applied as one simultaneous
substitution rather than a sequence.
Singletons include TP_CheckBusy -> TP_CheckError (the busy name is
already held by the TP_WaitBusy immediately before it, reading a
different field) and SbServerSetPublicAddr -> SBServerSetPrivateAddr
(it writes the offsets this tree's own getters define as the private
pair -- no external reference needed).
IDENTIFICATIONS -- 742 sub_<addr> placeholders given their real NitroSDK
names, 729 ARM7 and 13 ARM9, 132 KB of code. Largest groups: wl_arm7
318, wm 111, os 85, snd 78, spi 53, card 37, rtc 29.
Seven proposed names appear twice; each is one ARM9 and one ARM7
function of the same SDK code, linked into both processors as separate
images. They are not duplicates.
Every row is byte-identical machine code against a locally built
pokeplatinum (sbins_shared.sha1 122/122). Weaker evidence tiers are
excluded. Measured precision for this tier is 0 contradicted of 275
decidable rows, 95% CI upper bound 1.4% -- a ceiling of roughly 0-22
wrong of 742, and optimistic by construction, because it was measured
against a pool of existing names that this commit shows contains errors.
No byte changes: 42 files, equal insertions and deletions, no line
added or removed.
Authored by Claude (Opus 5) under human direction. Confirmed by a
matching build in all three regions: build/pmdsky.us/pmdsky.us.nds: OK,
build/pmdsky.eu/pmdsky.eu.nds: OK, build/pmdsky.jp/pmdsky.jp.nds: OK.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>