ppsspp_convert_address
Convert an address between IDA and PPSSPP address spaces using the fixed offset. Auto mode infers the direction from the input value.
Instructions
PURPOSE: Convert an address between IDA and PPSSPP address spaces (offset ±0x08804000).
USAGE: address required; mode optional ('auto' default / 'ida_to_ppsspp' / 'ppsspp_to_ida'); session_id optional.
BEHAVIOR: READ-ONLY. Pure arithmetic on the address; no PPSSPP contact.
RETURNS: {original, converted, mode, top_base_ppsspp, top_base_ida}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Conversion mode. 'auto' (default) infers from value: if address >= top_base.ppsspp, treats as ppsspp_to_ida; else ida_to_ppsspp. | auto |
| address | Yes | Address to convert, as a hex string (e.g. '0x08804000'). | |
| session_id | No | Optional session ID (reserved for future use; ignored). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Conversion mode used ('ida_to_ppsspp'/'ppsspp_to_ida'). | |
| original | Yes | Input address, hex string (e.g. '0x08804000'). | |
| converted | Yes | Output address, hex string (e.g. '0x08804000'). | |
| top_base_ida | Yes | top.prx IDA base address, hex string. | |
| top_base_ppsspp | Yes | top.prx PPSSPP base address, hex string. |