0x1fd gfx-set-scale-current
Opcode 0x1fd (509), draw. Investigated by OME, with high confidence (from investigation).
(handle)(scale_x_percent)(scale_y_percent)(scale_z_percent) — immediately replace the retained object's current scale matrix at obj+0x6c. The handler divides each scale operand by 100.0 before calling matrix4_make_scale; SYS4422 reads them as integers, SYS4433 as floats (Kamidori's SAVE@0xcad and ALLMAP@0x5d9 pass 37.5). This is distinct from 0x21e's delayed one-shot target scale.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | retained object handle | imm, g-int, l-int | read |
| 2 | current X scale percent | imm, g-int, l-int, l-ptr | — (by build: SYS4422 read; SYS4433 read-float; SYS4438 read-float) |
| 3 | current Y scale percent | imm, g-int, l-int | — (by build: SYS4422 read; SYS4433 read-float; SYS4438 read-float) |
| 4 | current Z scale percent | imm | — (by build: SYS4422 read; SYS4433 read-float; SYS4438 read-float) |
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.
| Build | Game | Used by its scripts | Evidence |
|---|---|---|---|
4.24J (SYS4422) | Himegari Dungeon Meister | yes | 1 |
4.33G (SYS4433) | Kamidori Alchemy Meister | yes | — |
4.38D (SYS4438) | Soukoku no Arterial | yes | — |
Evidence
- native-re on SYS4422, high confidence; Himegari AGE.EXE Ghidra /v2 and decoded script corpus (
vm-map/opcodes.toml opcode 0x1fd): Ghidra /v2: handler gfx_op_0x1fd_set_vec_scaled@0x422650 fetches operands 2..4, divides each by the 100.0 constant, and calls gfx_object_set_scale_current@0x47e6b0. The worker gets/creates the object, marks obj+0x68, and calls matrix4_make_scale on obj+0x6c. SC0000 sets AE001D handles to 210/210/100 and 240/240/100; without this setter their 800x800 alpha circles remain below the viewport. Both functions annotated and /v2 saved 2026-07-11.