0x132 reset-int-queue
Opcode 0x132 (306), compute. Investigated by OME, with high confidence (from investigation).
(queue_id) - destroy any existing queue in the selected engine slot and replace it with an empty integer FIFO. Native owns ten queues, ids 0..9; its test admits id 10, which lands on stack 0.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | queue_id (an index into queue, 10 entries, not bounds-checked) | 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 | 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 0x132): Ghidra /v2: op_0x132_reset_int_queue@0x4217d0 fetches queue_id, rejects values above 10, invokes the existing object's virtual destructor, allocates 0x1c bytes, and calls int_queue_construct@0x4074c0. The constructor allocates 0x100 dwords, sets capacity and growth quantum to 0x100, and zeros the read/end/high-water indices. scene_context_init_reset@0x40b560 constructs exactly ten queue pointers at EngineCtx+0x55130 before the ten stack pointers at +0x55158, so admitted queue id 10 aliases stack slot 0. The only corpus sites are ATSEEK@0x32 and MVSEEK@0x145, both using id 0 before their flood fills.
Details
OME’s notes on it, as the registry keeps them.
Implemented as native's ten queues, which the engine's start and every scene reset build empty (scene_context_init_reset: SYS4422 0x40b689, 4.38D 0x40c962), so a queue no script has reset is an empty one. Reset replaces the selected queue with an empty FIFO pre-sized to the native 0x100-dword initial capacity. Id 10, which the handler's test lets through onto stack slot 0, halts the run; ids above 10 are traced as ResetQの引数が不正です. and skipped, as native traces them (2026-11-17; docs/engine-re.md, 'Indices outside their tables').