0x1b1 set-adv-wait-indicator-follow-last-glyph
Opcode 0x1b1 (433), adv. Investigated by OME, with high confidence (from investigation).
(enabled) — choose the ADV wait indicator's destination anchor. Zero uses the layout origin plus configured offset; one also adds the left/top of the layout's last 20-byte glyph record, which is the pending record at the text cursor, just past the last drawn glyph.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | follow final retained glyph (boolean) | imm | read |
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, SYS4433, high confidence; Himegari SYS4422 Ghidra /v2 and Kamidori SYS4433 Ghidra /kamidori/SYS4433 (4.33F), addresses given for /kamidori/4.33G (
vm-map/opcodes.toml opcode 0x1b1): SYS4422 op_0x1b1_set_wait_indicator_follow_last_glyph@0x41f480 writes text-manager+0x56c (EngineCtx+0x14eac); SYS4433 equivalent @0x41d620 writes its shifted text-manager+0x570 (EngineCtx+0x14ea8). The wait-indicator publisher has explicit 0/1 branches: zero uses layout origin plus configured destination offset, while one additionally reads the final 0x14-byte retained glyph record and adds its left/top. Kamidori's natural SYSTEM4.BIN boot sets one at 0xb7. Himegari's dispatcher installs the same behavior despite no decoded corpus use.
Details
OME’s notes on it, as the registry keeps them.
SYS4433's renderer is adv_wait_indicator_draw_frame_sys4433@0x4526d0: x = layout+0xc + *(layout+0x30 - 0x10) + config+0x50, and likewise for y. The builders draw into the last record and then push the next one at the cursor, which op 0x6f's line end, op 0x7a and a layout reset move. The port keeps each layout's cursor (TextManager._layoutCursors, fed by every drawn run and by TextManager.SetAdvTextCursor) and anchors there; anchoring on the last glyph's own left had put Kamidori's indicator one cell left of native's (fixed 2026-11-07). Op 0x9's reset sets the mode to 0 on both builds: the text manager's initializer zeroes +0x56c (SYS4433 +0x570) and scene_context_init_reset then zeroes ctx+0x14eac (SYS4433 +0x14ea8); Kamidori's SYSTEM4 sets it again at 0xb7 (2026-11-13).