0xcc register-mouse-callback
Opcode 0xcc (204), input. Investigated by OME, with high confidence (from investigation).
(poll_interval_ms)(target_pc) - register the engine's one timed mouse callback, owned by the current script.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | poll interval (ms) | imm | read |
| 2 | callback code target | 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 0xcc): Ghidra /v2: op_0xcc_register_mouse_callback@0x420f70 stores operand 2 as the callback PC at ctx+0x5f684 and the current frame_script_resource_id as its owner at ctx+0x5f6ac, then arms operand 1 as the poll interval of the timer at ctx+0x5f320. Only ops 0xcc/0xcd and scene_context_init_reset@0x40b3b0 (owner -1) touch these fields. 36 Himegari scripts register a callback, all with interval 0x32. Op 0xcd performs the timed dispatch.
Details
OME’s notes on it, as the registry keeps them.
The registration is engine-wide (target +0x5f684, owner mouse_callback_owner_script_id +0x5f6ac, interval timer +0x5f320), not per frame: a registration from any frame replaces the earlier one, and op 0xcd in another script raises the Depth error. Root reload clears the owner but keeps the target.