0x2dc get-font-family-count
Opcode 0x2dc (732), adv. Investigated by OME, with high confidence (from investigation).
(out_count) - return the number of entries in SYS4433's installed-font-family cache, or -1 when the cache is empty.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | out: installed font-family count, or -1 when empty | l-int | write |
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 | yes | 1 |
4.38D (SYS4438) | Soukoku no Arterial | yes | — |
Evidence
- native-re on SYS4433, high confidence; Kamidori SYS4433 Ghidra /kamidori/SYS4433 (4.33F), addresses given for /kamidori/4.33G (
vm-map/opcodes.toml opcode 0x2dc): SYS4433 dispatcher slot 0x2dc installs op_0x2dc_get_font_family_count@0x42b9f0. The handler computes(EngineCtx+0x45cfc - EngineCtx+0x45cf8) / 0x20, writes -1 instead of zero for an empty vector, and stores the result through operand 1. The same vector is searched by text_find_font_family_index@0x423a80 and indexed by opcode 0x2dd. SELFONT.BIN@0xa5 has the sole local-int output call. SYS4422 does not install this slot.
Details
OME’s notes on it, as the registry keeps them.
The native cache is the same vector of 0x20-byte strings searched by opcode 0x2de and indexed by opcode 0x2dd. Kamidori's sole call stores the result in local integer 1033 near the start of SELFONT.BIN. SYS4422 does not install this dispatch slot.