Porting tools (e): structured drafts, jump tables, groundtruth, style checks (fixes #50) #53
Loading…
Reference in a new issue
No description provided.
Delete branch "structure"
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?
Structured drafts (
tools/draft_structure.py: if/else, loops, switch; goto kept only where irreducible, with the reason), jump tables asswitch (x),tools/groundtruth.py(port vs draft: RAM variables and call-outs),tools/portstyle.py(10 mechanical style checks, report only), no-goto rule in CLAUDE.md rule 2. Reuses the user's CT tools.Evidence: 9 field drafts US+JP gotos 170 -> 6 (all in UpdateObjFrame, commented), 65 jump-table routines draft and compile with -Werror (gotos 3 369 -> 885); draft_check title_to_mines_save + field_menu_tour US+JP 291 836 calls, 0 mismatch, 0 fallback; groundtruth 9/9 field ports match (battle/Rand: draft reads one extra byte, to check); portstyle 0 findings; debug and clang
-LE slow27/27.Fixes #50
🤖 Generated with Claude Code