mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 02:11:36 -04:00
6f7fcdc89b
The "v4" suffix was a holdover from iterative project restarts. There is now one psxrecomp; all identifiers, include guards, cmake variables, function names, log strings, schema tags, and tool paths drop the v4 suffix. Changes: - PSXRECOMP_V4_ROOT → PSXRECOMP_ROOT (cmake) - PSXRECOMP_V4_RUNTIME_SOURCES/_INCLUDE_DIRS/_BIOS_GENERATED → no V4 - psxrecomp_v4_add_runtime_target → psxrecomp_add_runtime_target - PSXRECOMP_V4_*_H include guards → PSXRECOMP_*_H - "psxrecomp-v4" log/window strings → "psxrecomp" - Schema version strings in recompiler JSON output - Tool script hardcoded absolute paths updated Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
12 lines
441 B
Python
12 lines
441 B
Python
import struct, sys
|
|
with open('F:/Projects/psxrecomp/psxrecomp/bios/SCPH1001.BIN', 'rb') as f:
|
|
data = f.read()
|
|
# Read inputs as pc, length
|
|
start_pc = int(sys.argv[1], 16) if len(sys.argv) > 1 else 0xBFC16060
|
|
length = int(sys.argv[2], 0) if len(sys.argv) > 2 else 0x40
|
|
off0 = start_pc - 0xBFC00000
|
|
for i in range(0, length, 4):
|
|
w = struct.unpack_from('<I', data, off0 + i)[0]
|
|
pc = start_pc + i
|
|
print(f'{pc:08x}: {w:08x}')
|