mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-26 10:19:47 -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>
14 lines
587 B
Python
14 lines
587 B
Python
import sys
|
|
sys.path.insert(0, 'F:/Projects/psxrecomp/psxrecomp/tools/_options_session')
|
|
import _dbg
|
|
addr = int(sys.argv[1], 16)
|
|
size = int(sys.argv[2], 0) if len(sys.argv) > 2 else 0x200
|
|
r = _dbg.call(4470, 'read_ram', addr=f'0x{addr:08X}', len=size, timeout=4)
|
|
b = bytes.fromhex(r['hex'])
|
|
print(f"Contents of 0x{addr:08X} ({size} bytes):")
|
|
for i in range(0, len(b), 32):
|
|
line = ' '.join(f'{x:02x}' for x in b[i:i+32])
|
|
non_zero = sum(1 for x in b[i:i+32] if x != 0)
|
|
marker = "" if non_zero == 0 else f" ({non_zero}/32 non-zero)"
|
|
print(f" +0x{i:03X}: {line}{marker}")
|