0x1fa gfx-elem-release
Opcode 0x1fa (506), draw. Investigated by OME, with high confidence (from investigation).
0x1fa (surface_slot) — delete the slot's movie object ctx+0x52bd4[slot] (virtual free, then null), whether or not its movie has reached the end, then release the slot's texture with retained_gfx_release_surface@0x474e40. It releases a surface slot, not a retained object handle. SC0000 feeds it the slot returned by op 0x215 after op 0x1f7 erases the associated object group.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | surface slot (an index into surface, 1000 entries, not bounds-checked) | imm, g-int, l-int, l-ptr | 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 0x1fa): Ghidra handler 0x4224a0 (dispatch ctx[0x26c93+0x1fa]); frees ctx+0x52bd4[operand1*4] via vtbl, then FUN_00474e40(operand1). retained_gfx_release_surface writes only the surface record's resource id -1; the packed key and created flag stay (2026-11-03).
Details
OME’s notes on it, as the registry keeps them.
Port (2026-11-07): MovieSurfaceRegistry.Release drops the slot's movie binding whatever its playback state, as do create-texture, set-texture and 0x249. Kamidori's FIELD@0xbbf8 waits out its chest effect on the anim clock, releases surface 0x2a here and MES recreates it for the pickup text; the port's earlier guard kept an unfinished movie bound and showed its last frame instead of the text.