0x223 queue-surface-alpha-transition
Opcode 0x223 (547), draw. Investigated by OME, with high confidence (from investigation).
(command_key)(target_slot)(range_a_start)(range_a_count)(range_b_start)(range_b_count)(delay_ms)(duration_ms) — queue a type-0 timed alpha transition command in the separate ctx+0x414 command map. This is render-target/surface presentation state, not an object affine matrix. The render frame composites the two handle ranges into target_slot and ramps alpha 0->1 after delay over duration.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | command record key | imm, l-int | read |
| 2 | target surface slot (an index into surface, 1000 entries, not bounds-checked) | imm, l-ptr | read |
| 3 | first object range start handle | imm, l-int | read |
| 4 | first object range count | imm, l-int | read |
| 5 | second object range start handle | imm, l-ptr | read |
| 6 | second object range count | imm, l-int | read |
| 7 | delay milliseconds | imm, g-int | read |
| 8 | duration milliseconds | imm, g-int | read |
It works with 0x20c, 0x21c, 0x1c7, 0x1cc. Named by 0x20c, 0x21c, 0x21d, 0x24d 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 0x223): Ghidra handler 0x423620 -> gfx_queue_surface_alpha_transition@0x47f440. Record fields: type +0=0, start +4=0, delay +8=arg7, duration +0xc=arg8, slot +0x10=arg2, range A +0x14/+0x1c=args3/4, range B +0x18/+0x20=args5/6. gfx_render_frame@0x47fbc0 initializes start from retained-gfx owner+0xb550 (EngineCtx+0x51b64) and consumes type 0 as an alpha ramp. SC0000 executes one shared-helper site at 0x129e7.