mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-25 18:05:12 -04:00
b210446460
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.
12 lines
347 B
Python
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'))
|