Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

0x205 draw-formatted-integer

Opcode 0x205 (517), draw. Investigated by OME, with high confidence (from investigation).

Format an integer into a fixed-width decimal field and rasterize it immediately into a numbered graphics surface using the current font/color/effect state.

Operands

#RoleTypes seenAccess
1destination surface slot (an index into surface, 1000 entries, not bounds-checked)immread
2ximm, l-intread
3yimm, l-intread
4valueg-int, l-int, l-ptrread
5field width (characters, including sign)immread
6format/alignment flagsimmread

It works with 0x75, 0x204.

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.

BuildGameUsed by its scriptsEvidence
4.24J (SYS4422)Himegari Dungeon Meisteryes1
4.33G (SYS4433)Kamidori Alchemy Meisteryes—
4.38D (SYS4438)Soukoku no Arterialyes—

Evidence

  • native-re on SYS4422, high confidence; Himegari AGE.EXE Ghidra /v2 and decoded script corpus (vm-map/opcodes.toml opcode 0x205): Ghidra /v2: op_0x205_handler@0x422ab0 fetches (surface,x,y,value,width,flags), calls format_integer_for_surface@0x407190, then draw_string_to_surface@0x450150. DRAWENP contains all 16 previously stubbed calls responsible for its level, HP/SP/FS, and stat values.

Details

OME’s notes on it, as the registry keeps them.

The field width includes an optional sign. Bit 0 zero-pads; bit 1 centers omitted leading cells; bit 2 left-aligns; bits 3/4 request '+' for positive/zero; bit 5 renders zero with '-'. With bit 16, output remains half-width ASCII and omitted-cell x adjustment uses half the current font cell advance; otherwise the formatter converts digits/signs to full-width CP932. Default alignment preserves the field's right edge by shifting x right for each omitted leading cell.