0x104 dispatch-stepped-joy-callbacks
Opcode 0x104 (260), input. Investigated by OME, with high confidence (from investigation).
Call the stepped callback of the highest logical action op 0xff polled, or of the idle row when none is set, at the running frame's step; then advance the step, modulo op 0x103's count.
Operands
It takes no operands.
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 instructionjumps: it continues at another instruction of its frame
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 | — |
4.33G (SYS4433) | Kamidori Alchemy Meister | no | — |
4.38D (SYS4438) | Soukoku no Arterial | yes | 1 |
Evidence
- native-re on SYS4438, high confidence; Arterial SYS4438 Ghidra /arterial/4.38D and the complete Arterial catalog (
vm-map/opcodes.toml opcode 0x104): op_0x104_handler@0x418f40 scans from ctx+0x772f4[frame] - 1 down to 0 for a bit of the triggered mask ctx+0xaa648. For a set bit it zeroes the frame's step (ctx+0x771b4) when the global 0x5e73fc differs, stores the action there, pushes pc + 1, or pc with ctx+0x772f4[frame] = action when ctx+0x771b0 has the bit, and jumps to the table's target for the action and step unless it is -1, in which case it pops; with no bit it does the same for the row of the action count (ctx+0x814), pushing pc + 1. Each path ends by storing (step + 1) % ctx+0x771ac.
Details
OME’s notes on it, as the registry keeps them.
The scan goes down from the frame's limit, which op 0xff sets to the action count. The step starts again at 0 when the action differs from the one dispatched last. An action of op 0x105's mask returns to op 0x104 itself with the limit lowered to it, so the next pass takes the lower actions; any other action and the idle row return to the next instruction. A target of -1 calls nothing. With a count of 0 native divides by zero and the process ends; the port halts. The action dispatched last is one module global for every frame and scene. 創刻のアテリアル has 1 site.