0x26 reveal-surface-wiped
Opcode 0x26 (38), draw. Investigated by OME, with high confidence (from investigation).
(surface)(interval ms)(divisions)(type) — blocking wipe of a captured surface over the frame: types 0 to 3 wipe from the left, right, top or bottom edge in that many steps, and type 4 is op 0x27's type 0.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | captured surface slot the wipe reveals (an index into surface, 1000 entries, not bounds-checked) | imm | read |
| 2 | timer period in milliseconds | imm | read |
| 3 | steps the screen's width or height is divided into | imm | read |
| 4 | type 0..4, the pattern mode | 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 | no | — |
4.38D (SYS4438) | Soukoku no Arterial | yes | 1 |
Evidence
- native-re on SYS4438, high confidence; Arterial SYS4438 Ghidra /arterial/4.38D and the complete Arterial catalog (
vm-map/opcodes.toml opcode 0x26): op_0x26_reveal_surface_wiped@0x41c660 sets the frame's wait kind to 9, tests operand 4 against 0..4 (trace string 0x5a58c0) and, with operand 3 above 0 and run-state 0x8000000 clear, calls pattern_surface_transition_begin@0x43fce0(operand 1, operand 3, operand 4); a zero return ends the handler, else it sets run-state 0x10 and calls sleep_timer_arm@0x44fe50(operand 2). Otherwise it calls screen_transition_finalize@0x43d230(operand 1, 0). Begin under draw mode 1 (ctx+0xa2bd4) tests the active region's width for modes 0 and 1 and its height for 2 and 3 against the count (+0x2020) and sets the rectangle +0x2010..+0x201c empty at the starting edge. pattern_surface_transition_tick@0x440510 adds its argument + 1 to the counter +0x1fb8, caps it at the count, moves the rectangle's far edge to (extent / count) x counter from the starting edge and draws that rectangle of the surface at the same place (gfx_draw_surface_through_sprite), then presents; it reports the reveal finished when the counter reaches the count. engine_main_tick@0x411e70 passes it interval_timer_poll_elapsed_steps@0x44fee0, the periods missed since the last tick, or 0x10000000 when action 4 is triggered.
Details
OME’s notes on it, as the registry keeps them.
Native's command name is ComEfWp. A type outside 0..4 (signed) traces 「関数:ComEfWp エラー:Typeは0から1の間にしてください」 and does nothing else. With divisions above 0 and no fast-forward the handler begins pattern mode type (pattern_surface_transition_begin), which refuses a division count the screen's width (types 0, 1 and 4) or height (2 and 3) does not divide by with a SetLineFade trace and starts nothing; when it begins, the handler sets run-state 0x10, arms the interval timer and blocks in VM state 9. Otherwise it finishes on the surface at once (screen_transition_finalize: a negative slot fills 0x20 with black). In the shipped draw mode the tick counts the timer's periods: for modes 0 to 3 the surface shows in one rectangle that grows from the edge by the screen's width or height over divisions each period, drawn over the frame that was there, and the reveal is over after divisions periods. Action 4 forces it to its end. 創刻のアテリアル has 15 sites in 10 scripts; the first site of each script passes surface 2 with (1 ms, 64, type 0), (1 ms, 64, type 3) or (30 ms, 16, type 3). Neither Himegari nor Kamidori calls it.