"""Dump bytes around 0xBFC19538 (last_store) + 0x800321BC (primary_handler) + key fn_entry hits in 0xBFC19500..0xBFC19A60 to see if commit area runs.""" import socket, json, struct s = socket.create_connection(('127.0.0.1', 4370), timeout=10) def send(p): s.sendall((json.dumps(p) + '\n').encode()) buf = b'' while True: c = s.recv(1<<20) if not c: break buf += c if buf.strip().endswith(b'}'): try: return json.loads(buf.decode()) except: continue print("=== 0x800321BC primary handler RAM (32 bytes) ===") rr = send({'id':1,'cmd':'read_ram','addr':'0x800321BC','len':0x40}) b = bytes.fromhex(rr.get('hex','')) for i in range(0, len(b), 4): w = struct.unpack('