0x27 reveal-surface-striped
Opcode 0x27 (39), draw. Investigated by OME, with high confidence (from investigation).
(surface)(interval ms)(divisions)(selector) — blocking equal-strip reveal of a captured surface; selectors 0..3 choose vertical/horizontal direction and selector 4 selects the first staggered mode.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | target captured surface slot (an index into surface, 1000 entries, not bounds-checked) | imm | read |
| 2 | transition tick interval in milliseconds | imm | read |
| 3 | equal strip count | imm | read |
| 4 | pattern selector mapped to native mode selector+4 | imm | read |
In the port
OME’s port implements it. It may wait: 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 | no | — |
4.33G (SYS4433) | Kamidori Alchemy Meister | yes | 1 |
4.38D (SYS4438) | Soukoku no Arterial | yes | — |
Evidence
- native-re on SYS4433, high confidence; Kamidori SYS4433 Ghidra /kamidori/SYS4433 (4.33F), addresses given for /kamidori/4.33G (
vm-map/opcodes.toml opcode 0x27): Handler 0x41b0a0 maps selector to modes 4..8 and uses the shared timer/blocking service. Worker 0x43d600 reveals vertical or horizontal strips and commits the full target surface on completion. The sole corpus call SC1050@0x8cf5 is(2,40,64,3).
Details
OME’s notes on it, as the registry keeps them.
SYS4433 maps selector 0..4 to native pattern modes 4..8. Modes 4/5 divide the active width into equal strips and reveal each strip left-to-right/right-to-left in parallel; modes 6/7 do the equivalent across equal-height strips from top/bottom. Mode 8 is the first staggered vertical variant shared with opcode 0x28. A positive division count must evenly divide the relevant active dimension. Operand 2 arms the per-step timer; ADV fast-forward or a nonpositive division count publishes the target endpoint immediately. Kamidori's only call is SC1050@0x8cf5 `(2,40,64,3)`, mode 7. A selector outside 0..4 (signed) is traced (ComEfBl: Typeは0から1の間にしてください) and nothing starts; a division count the screen does not divide is traced by the begin worker (SetLineFade) and nothing starts; the port skips both with the trace and halts on a surface the transition would draw past 999 (2026-11-17; docs/engine-re.md, 'The 28 ops' native tests'). This is proven for SYS4433 only.