0x1fb draw-texture
Opcode 0x1fb (507), draw. Investigated by OME, with med confidence (from investigation).
Blit a texture slot to screen. Observed 8 args: (handle, slot, srcx, srcy, w, h, dstx, dsty). e.g. draw-texture 0xcf08 0x3 0 0 0x320 0x258 0 0 = full-screen (800x600) slot 3 at (0,0).
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | handle/source ref | imm, g-int, l-int, l-ptr | read |
| 2 | texture slot (an index into surface, 1000 entries, not bounds-checked) | imm, g-int, l-int, l-ptr | read |
| 3 | src x | imm, l-int, l-ptr | read |
| 4 | src y | imm, l-int, l-ptr | read |
| 5 | width | imm, g-int, l-int, l-ptr | read |
| 6 | height | imm, g-int, l-int, l-ptr | read |
| 7 | dst x | imm, g-int, l-int, l-ptr | read |
| 8 | dst y | 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, med confidence; Himegari AGE.EXE Ghidra /v2 and decoded script corpus (
vm-map/opcodes.toml opcode 0x1fb): SC0000 CG-load subroutine label_12649:draw-texture (ptr) (slot) 0 0 (w) (h) (dstx) (dsty); full-screen slot-3 draws use 0x320x0x258 (800x600).