0x72 wait-for-input
Opcode 0x72 (114), adv. Investigated by OME, with high confidence (from investigation).
(layout_slot) - arm the ADV input wait after text reveal completes; activate the configured wait indicator and, while Auto is enabled, arm the appropriate Auto-message timer.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | layout slot (0 = current) (an index into layout, 10 entries, not bounds-checked) | imm | read |
In the port
OME’s port implements it. It may wait: 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 instructioncalls: it runs another frame or a callback before it returns: a script, a wait’s callback, a menu’s scriptends: it ends its frame, the scene or the run, itself or because a frame it ran did
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 | yes | 1 |
4.33G (SYS4433) | Kamidori Alchemy Meister | yes | — |
4.38D (SYS4438) | Soukoku no Arterial | yes | — |
Evidence
- native-re on SYS4422, high confidence; Himegari AGE.EXE Ghidra /v2 and decoded script corpus (
vm-map/opcodes.toml opcode 0x72): Ghidra /v2: op_0x72_handler@0x41e690 fetches operand 1 and calls FUN_00453120(text_manager, layout_slot, -1, &state), then sets the input-wait run-state flags. FUN_00453120 resolves layout slot 0 as current and consumes the indicator descriptor at layout+0x3c configured by op 0x73. SYSTEM4 layout 1 uses SO000's bat strip; the click that completes show-text is consumed before this opcode is reached. The handler also checks ctx+0x55104 (Auto enabled): when ctx+0x6dbe4 has no pending voice it arms the timer with message:AutoMessageTime1, substituting 100 ms for configuration value zero. adv_input_service_poll@0x411230 waits for an active voice to finish and then arms AutoMessageTime0, likewise with a 100-ms zero fallback. The same poll enters the frame's op-0x7b handler A on logical action 5 (Space in both games) when no click or fast-forward bit and no op-0x97 binding takes it, saving the wait's run state and the wait itself as the yield's resume: Space hides the text window (port: VirtualMachine.TryRequestAdvWaitCoroutineYield, 2026-11-05). The same click/Auto completion path calls read_text_db_queue_message@0x469340 with the current script id, resolved per-script message index, and message count; an already-skipped wait queues it directly in op 0x72. Op 0x71 later commits the pending records.
Details
OME’s notes on it, as the registry keeps them.
Port status (2026-07-24): after the blocking host releases this wait, the VM queues the current packed script id, T1 message index, and T1 count; the next 0x71 commits it. Already-read waits use the same queue path after immediate host release. Entry runs the read-skip block (0x41e73b), then clears run-state 0x08000000 when the message is unread and the held action mask lacks 0x40 (0x41e786). The wait polls the triggered mask, into which ctx+0x13dc injects action 6, so persistent Skip starts fast-forward again at every polling wait while ctx+0x13dc holds (docs/engine-re.md, 'Read skip and ctx+0x13dc'). Port (2026-11-07): ApplyReadTextSkip, then the script channel follows MessageSkipInjected unless the message is read.