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.

0x6 preload-script-slot

Opcode 0x6 (6), control. Investigated by OME, with high confidence (from investigation).

(script_id, frame_slot) - load and allocate a script into a numbered engine context slot without executing it. Valid slots are 0..39.

Operands

#RoleTypes seenAccess
1script_idimmread
2frame_slot (an index into script frame, 40 entries, not bounds-checked)immread

Named by 0x8 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.

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 0x6): Ghidra /v2: op_0x6_preload_script_slot@0x41bdb0 fetches script_id and frame_slot, saves the current context index, selects frame_slot, rejects values above 39, calls script_frame_load_resource(ctx+0x54fe8, script_id), restores the caller index, and throws on load failure. SYSTEM4's only three sites preload ATSEEK.BIN (0x337f) into slot 0x1d, SETROUTE.BIN (0x3380) into 0x1e, and MVSEEK.BIN (0x3381) into 0x1f before INIT2.

Details

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

Implemented as persistent VM-owned preloaded slots containing the resolved script id and one reusable ExecFrame. Replacing a slot allocates a fresh frame/local bank; invalid slots and absent providers halt diagnostically. An id the resource open refuses shows the loader's 再試行/キャンセル box as op 0x3's does (docs/engine-re.md, "The frame limit and load failures"). Root scene reload clears the slots before SYSTEM4 registers them again.