Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

0x216 query-gfx-field?

Opcode 0x216 (534), draw. Investigated by OME, with high confidence (from investigation).

(out)(surface_slot) - return the packed resource id in the live surface record: -1 for an empty or created surface, after op 0x249's raw load, and after op 0x9 reset the records, even when the texture survives. The slot is not bounds-checked: slot -1 returns 0 and slots 1000..1999 read the page snapshot table. Legacy mnemonic query-gfx-field? is retained for compatibility.

Operands

#RoleTypes seenAccess
1outg-int, l-intwrite
2surface_slot (an index into surface record, 2000 entries, not bounds-checked)imm, g-int, l-intread

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.

BuildGameUsed by its scriptsEvidence
4.24J (SYS4422)Himegari Dungeon Meisteryes1
4.33G (SYS4433)Kamidori Alchemy Meisteryes—
4.38D (SYS4438)Soukoku no Arterialyes—

Evidence

  • native-re on SYS4422, high confidence; Himegari AGE.EXE Ghidra /v2 and decoded script corpus (vm-map/opcodes.toml opcode 0x216): SYS4422 handler 0x42a0f0 reads EngineCtx+0x46d14 + slot*0x14; SYS4433 handler 0x42af80 reads EngineCtx+0x4af9c + slot*0x14. These are surface-record resource words, not an independent object-field table. Native gfx_surface_load_asset@0x477c40 maintains the SYS4422 record; initial/blank records use -1. Installed Kamidori loose BTL.BIN@0x30e0 queries old slot 0xc2+side, then @0x319d reloads the returned id into transition slot 0x2b+side after replacing the primary texture. Kamidori native at ALLMAP after a workshop scene: G[0xfd437]=-1 from op 0x215, G[0x320a]=0 from this op (Frida, 2026-11-07); a Frida read of the SYS4433 snapshot at ctx+0x4af9c+0x4e20 matches the SAVE05 snapshot.

Details

OME’s notes on it, as the registry keeps them.

Both handlers index gfx manager+0x700+slot*0x14 with no bounds check. Scripts reach slot -1 when op 0x215 reports no object: Kamidori ALLMAP@0x4fa and SAVE@0xbce query object 0xcb2a and test the result only for zero before querying its slot. Slot -1 reads manager+0x6ec, which neither image addresses (no displacement 0x6ec or ctx+0x46d00/0x4af88 operand); a Frida read of Kamidori native reads 0 there, and native saves keep G[0x320a]=0 while the port wrote -1 (2026-11-07). The page snapshot table follows the live one at manager+0x5520, so slots 1000..1999 read snapshot record slot-1000. Slots outside -1..1999 read unrelated manager memory and are not modeled (the port halts).