0x1f4 stmt-begin
Opcode 0x1f4 (500), structural. Investigated by OME, with high confidence (from investigation).
() - open an atomic statement block. The outermost open sets statement_block_active and restarts the presentation-timer baseline; a nested open only increments statement_block_depth. While a block is open the outer tick defers delayed SFX/voice/movie service and forced redraw, and queued script launches wait for the outermost op 0x1f5.
Operands
It takes no operands.
It works with 0x1f5. Named by 0x1f5 as one it works with.
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 | 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 0x1f4): Ghidra-free static RE of /v2 (tools/operand_access.py image walk): handler 0x417390 sets ctx+0x5f2fc and moves frame_timer_current (ctx+0x51b64) to its predecessor slot before storing timeGetTime, or increments ctx+0x5f300 when already active. engine_main_tick_with_exception_policy@0x411840 skips sfx service 0x4827e0, voice_tick_delayed_playback@0x4884d0, movie_start_pending_after_sync_delay@0x4633b0 over ctx+0x52bd4[0..999], and the forced-redraw check at ctx+0x51b6c while ctx+0x5f2fc is set unless run_state_flags bit 0x400 is set (sites 0x411a42, 0x411b05, 0x411cb3). script_launch_queue_dispatch_next@0x40f6e0 returns immediately while it is set. Corpus: balanced in all 481 Himegari base scripts, nesting at most two, and no jmp/jcc/switch/coroutine/timer edge crosses a block boundary (0 of ~160k); blocks wrap ADV line-template expansions. Headless no-op is safe only because no corpus path queues a launch inside a block.
Details
OME’s notes on it, as the registry keeps them.
Port status (2026-11-12): the engine tick (Ome.Engine.Natives.EngineTick, engine layering milestone 6) tracks statement_block_active and depth. While the outermost block is open the tick withholds delayed voice (0x2c0) and SFX (0x2bf) starts, and the host, like the native tick, withholds its own presentation until the close, except for explicit present-frame (0x20c) and transition parks (the run-state 0x400 equivalent). Blocks may span waits (ADDEXP, MES.BIN, SC0000's strip buttons); those scripts present explicitly. Not modelled: movie starts, the 0x2000 modal service, the unused 0xd8 timer, and native's delayed starts inside a block during a run-state 0x400 park (docs/backlog.md). See docs/engine-re.md 'Statement blocks'.