ppsspp_evaluate
Evaluate debugger expressions (register names, hex literals, arithmetic) for a session and get the computed value. Read-only; dereference memory via read_u32 instead.
Instructions
PURPOSE: Evaluate a debugger expression (register names, hex literals, simple arithmetic).
USAGE: session_id + expression. No '*addr' dereference syntax — read memory with read_u32 instead.
BEHAVIOR: READ-ONLY. Pauses/resumes the CPU internally.
RETURNS: {expression, value, response, text}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | Debugger expression to evaluate. Examples: 'r5 + 0x10', 'pc', 'r5 + r6'. The supported syntax is whatever PPSSPP's expression evaluator accepts. Note: PPSSPP's evaluator does NOT support dereference syntax like '*0x08804000' — use read_u32 / read_bytes instead to read memory at an address. | |
| session_id | Yes | Active session ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Unified text representation: '{EXPR} = 0x{VAL:X}' when value is an int, or '{EXPR} = {value!r}' otherwise. | |
| value | Yes | Evaluated value (int) if numeric, else None. | |
| response | Yes | Raw PPSSPP WebSocket response. | |
| expression | Yes | The expression evaluated. |