0x2ec string-to-int
Opcode 0x2ec (748), compute. Investigated by OME, with high confidence (from investigation).
(out)(string) — out = atol(string): the integer a string begins with, 0 when it begins with none.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | destination | l-int | write |
| 2 | string | l-str | read-string |
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 0x2ec): op_0x2ec_string_to_int@0x42e460 reads operand 2 through vm_operand_read_string_buffer, calls the CRT's atol (0x585710, the routine vm_operand_fetch parses a string operand with) and writes the result to operand 1 through vm_operand_write.
Details
OME’s notes on it, as the registry keeps them.
The port matches (NativeAtol over the string as the read-string accessor gives it). 創刻のアテリアル has 3 sites; TITLE@0x74d takes the version text's first number.