0xcd dispatch-mouse-callback
Opcode 0xcd (205), input. Investigated by OME, with high confidence (from investigation).
Dispatch the registered mouse callback when its polling interval elapses (at once under fast-forward). A callback registered by another script raises the Depth error.
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 | 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 0xcd): Ghidra /v2: op_0xcd_dispatch_mouse_callback@0x417e10 sets frame_instruction_word_count 1, compares timeGetTime minus ctx+0x5f334 against the interval at ctx+0x5f338 (or run-state 0x8000000), stores the new time, pushes the following PC, pops it again for target -1, compares frame_script_resource_id with ctx+0x5f6ac and throws the 0x570424 Depth message on a mismatch, and otherwise jumps to the registered callback target. It writes no operand, so the upstream get-input-type label was incorrect.
Details
OME’s notes on it, as the registry keeps them.
Once due, the handler restarts the timer and pushes the following pc; a -1 target pops it again. When the running script is not the registrant it throws flags 0x10007 "Depth が不正です <running> != <owner>" with that return pc still pushed. Its recorded length is 1, so 無視 resumes at the successor, whose ret then pops the stale return pc; 再試行 re-runs it, which is not due again until the interval passes.