0x12c lookup-array-2d
Opcode 0x12c (300), compute. Investigated by OME, with high confidence (from investigation).
(dst_ref)(base)(row)(stride)(column) - bind reference dst_ref to base[row*stride + column] (integer cells of 4 bytes, string records of 0x1c); no bounds check.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | — | l-ptr, l-str-ptr | bind |
| 2 | — | g-int, g-str, l-int, l-str | address |
| 3 | — | imm, g-int, l-int, l-ptr | read |
| 4 | — | imm | read |
| 5 | — | imm, g-int, l-int, l-ptr | read |
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 0x12c): Ghidra /v2: op_0x12c_handler@0x428d70 computes fetch(5) + fetch(4) * fetch(3), resolves operand 2 with vm_operand_resolve_address and binds operand 1 through vm_pointer_operand_bind_element. Corpus row tables use it directly, for example ADDEXP lookup-array-2d (local-ptr 2) unit_current_stats current_unit_id 0xe 0 (14 stat columns).