fix(ezitext): restore Chinese user-dictionary address contract #1046
Reference in New Issue
Block a user
Delete Branch "agent/bittle/chinese-uwd-review"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Source contract
Align the Chinese caller with exact Zi8GetZHuwdPtr: ziU32 return and ziU32* address output, local native address word, byte-pointer views at three real reads, and explicit byte status narrowing. Preserve the existing +3 entry advance and all control flow. The accepted one-key caller already uses this same native address contract.
Original callee writes a word through r3, a halfword through r4, and takes workspace in r5. The Chinese call passes stack+0x10c, stack+0x9a and workspace, then explicitly narrows the returned status. Independent original disassembly confirms these fixed-register roles and the callee's 56/56 exact instructions. No fuzzy percentage gain is claimed.
Independent verification
Rebased and tested on
140117ea91.Detailed evidence: tools/decomp-assist/allhands-ezitext-chinese-uwd-contract.attempts.md. No shared headers, extra locals, linking flags or other regions changed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.