0x235 set-translation-cycle
Opcode 0x235 (565), draw. Investigated by OME, with high confidence (from investigation).
(handle)(period_ms)(translate_x)(translate_y)(translate_z) — configure a cyclic ping-pong translation matrix that moves identity→target over the first half-period and target→identity over the second.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | retained object handle | g-int | read |
| 2 | period milliseconds | imm | read |
| 3 | target translation X | imm, l-int | — (by build: SYS4422 read; SYS4433 read-float; SYS4438 read-float) |
| 4 | target translation Y | imm, l-int | — (by build: SYS4422 read; SYS4433 read-float; SYS4438 read-float) |
| 5 | target translation Z | 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 | no | 1 |
4.33G (SYS4433) | Kamidori Alchemy Meister | yes | 1 |
4.38D (SYS4438) | Soukoku no Arterial | yes | — |
Evidence
- native-re on SYS4422, SYS4433, high confidence; Himegari SYS4422 Ghidra /v2 and Kamidori SYS4433 Ghidra /kamidori/SYS4433 (4.33F), addresses given for /kamidori/4.33G (
vm-map/opcodes.toml opcode 0x235): SYS4422 op_0x235_handler@0x423e40 -> gfx_object_set_translation_cycle@0x47f110 and SYS4433 op_0x235_set_translation_cycle@0x421d10 -> gfx_object_set_translation_cycle@0x485f80 both fetch (handle, period, x, y, z), clear lazy start obj+0x218, store period at +0x22c, and build a target translation matrix at +0x290. SYS4433 gfx_object_compose_animated_transform@0x47a400 samples 2*min(elapsed%period, period-elapsed%period)/period, blends identity to target, and post-multiplies the result after cyclic rotation. Kamidori has 28 calls across 12 scripts; operand signatures are 25 g-int/imm/imm/imm/imm, two g-int/imm/l-int/imm/imm, and one g-int/imm/imm/l-int/imm.
Details
OME’s notes on it, as the registry keeps them.
The channel is independent from one-shot translation and the cyclic scale/rotation siblings. Its target is expressed directly in retained-gfx coordinates, not percentages. Native composes it after cyclic rotation and before restoring the object anchor. The complete Kamidori catalog contains 28 calls in 12 story/presentation scripts.