0x83 query-current-text-redraw
Opcode 0x83 (131), adv. Investigated by OME, with high confidence (from investigation).
(out_direction)(out_layout_slot)(out_record_index) - return the ADV redraw direction and selected retained-entry pair, or -1/-1 when no entry exists.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | output redraw direction/state (-1, 0, or 1) | g-int | write |
| 2 | output retained entry layout slot | g-int | write |
| 3 | output retained entry first-record index | g-int | write |
In the port
OME’s port implements it. It never waits: a wait parks the engine until input, a sleep, a transition, a dialog or a movie ends. What it can do with control besides waiting:
falls: it returns to the next instruction
OME derives these facts from the port’s handler (its tools/opcode_flow.py), and they over-approximate: a fact some path can reach is given.
By build
Whether each build’s scripts use it, as OME’s survey of the game’s scripts saw them, and how many evidence items name the build.
| Build | Game | Used by its scripts | Evidence |
|---|---|---|---|
4.24J (SYS4422) | Himegari Dungeon Meister | no | 1 |
4.33G (SYS4433) | Kamidori Alchemy Meister | yes | 1 |
4.38D (SYS4438) | Soukoku no Arterial | yes | — |
Evidence
- native-re on SYS4422, high confidence; Himegari SYS4422 Ghidra /v2 (
vm-map/opcodes.toml opcode 0x83): op_0x83_query_text_redraw_state@0x427140 writes ctx+0x6dbd0 to operand 1, then text_query_redraw_anchor@0x450bb0 returns the entry pair at text-manager+0xd6c or -1/-1. The helper reads the navigation anchor rather than SYS4433's later mutable redraw cursor. Himegari has no decoded corpus call. - native-re on SYS4433, high confidence; Kamidori SYS4433 Ghidra /kamidori/SYS4433 (4.33F), addresses given for /kamidori/4.33G (
vm-map/opcodes.toml opcode 0x83): op_0x83_query_text_redraw_state@0x427e10 writes ctx+0x72078 to operand 1, then text_query_redraw_cursor@0x450340 returns the entry pair selected by text-manager+0xd70 or -1/-1. The state is maintained as -1/0/1 by the ADV input redraw service. Six CONFIG1--CONFIG5 calls immediately feed operands 2/3 to opcode 0x82 and never read operand 1 elsewhere.
Details
OME’s notes on it, as the registry keeps them.
The first result is the native direct-history redraw direction/state (-1, 0, or 1). SYS4433 returns the entry at its mutable redraw cursor, while the inspected SYS4422 helper reads the latest navigation anchor instead. Kamidori's six CONFIG setting-handler sites discard out_direction and immediately pass the pair to 0x82. The portable runtime therefore returns neutral direction 0 and its newest retained navigation entry; this exactly covers every shipped Kamidori use while leaving native direct-history key walking as a distinct future input-service feature.