0x28 reveal-surface-staggered-strips
Opcode 0x28 (40), draw. Investigated by OME, with high confidence (from investigation).
(surface)(interval ms)(divisions)(selector) — blocking staggered-strip reveal of a captured surface in one of four vertical/horizontal directions.
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+8 | 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 0x28): Handler 0x41b180 maps selector to modes 8..12. Worker 0x43d600 implements four stagger directions for modes 8..11; begin worker 0x43cdd0 rejects mode 12. All 192 calls use surface 2, 64 divisions, interval 10/15, and selectors 0..3.
Details
OME’s notes on it, as the registry keeps them.
SYS4433 maps selector 0..4 to native pattern modes 8..12. The worker implements modes 8/9 as staggered equal-width strips revealed from the left/right and modes 10/11 as staggered equal-height strips revealed from the top/bottom. Each strip starts one timer step after its predecessor; completion takes `(divisions - 1 + strip thickness)` timer steps. Selector 4 reaches the worker's invalid-mode error for mode 12 (SetLineFade: タイプが不正です), and a selector outside 0..4 is traced (ComEfBl2) by the handler; either way nothing starts, and the port skips with the trace, as it does for a division count the screen does not divide (2026-11-17; docs/engine-re.md, 'The 28 ops' native tests'). ADV fast-forward or a nonpositive division count publishes the target endpoint immediately. Kamidori has 192 calls across 47 scripts; every call targets surface 2 with 64 divisions, uses a 10 or 15 ms interval, and selects one of modes 8..11. This is proven for SYS4433 only.