0x1cd sqrt
Opcode 0x1cd (461), compute. Investigated by OME, with high confidence (from investigation).
(out)(x) — out = the square root of x.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | result | l-float | — (by build: SYS4422 write; SYS4433 write-float; SYS4438 write-float) |
| 2 | x | l-float | — (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 | — |
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 0x1cd): op_0x1cd_handler@0x42a3d0 calls vm_operand_fetch_float(2), then 0x584e30, the C runtime's sqrt on st(0), and vm_operand_write_float(1, the result rounded to a float).
Details
OME’s notes on it, as the registry keeps them.
The C runtime's sqrt on the fetched value; a negative x gives a NaN. 4.33G and 4.38D read and write through the float accessors, 4.24J through the integer ones (the operand contracts below), and the port takes each operand through its ABI's accessor. 4.24J's handler itself is not read. 創刻のアテリアル has 1 site.