0x54 mod
Opcode 0x54 (84), compute. Investigated by OME, with high confidence (from investigation).
(out)(dividend)(divisor) — signed integer remainder with the dividend's sign (native IDIV EDX), not a floored modulo; the VM returns 0 for a zero divisor.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | — | g-int, l-int, l-ptr | write |
| 2 | — | g-int, l-int, l-ptr | read |
| 3 | — | imm, 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 0x54): Ghidra /v2: op_0x54_handler@0x426600 reads operands 2 and 3, CDQ+IDIV, and writes EDX to operand 1, so -1 mod 18 = -1. Kamidori SETTOOLBOX@0x61 sizes the last item page as ((count-1) mod 18)+1; a floored remainder (17) made every empty inventory category show 18 zero-id entries. 2026-09-28.