Files
psxrecomp/find_func.py
Matthew Stanley b210446460 Support native-wide presentation diagnostics and verified external mod media
Checkpoint exact NCLIP and cull-scale code generation, overlay ABI 25, draw-area clipping, timeline and presented-image rings, mod counters, hotkey matching and savestate messages. Add canonical external ROM/disc verification with immutable plugin-scoped snapshots. Focused recompiler/runtime validation: 16 tests passed.
2026-09-29 20:57:11 -07:00

12 lines
347 B
Python

import json,sys
d=json.load(open(sys.argv[1]))
addrs=[int(x,16) for x in sys.argv[2:]]
funcs=d['functions']
funcs.sort(key=lambda f:f['addr'])
import bisect
starts=[f['addr'] for f in funcs]
for a in addrs:
i=bisect.bisect_right(starts,a)-1
f=funcs[i]
print(hex(a), '->', f['name'], hex(f['addr']), hex(f['end']), f.get('confidence'))