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.

0x199 yield-adv-coroutine

Opcode 0x199 (409), control. Investigated by OME, with high confidence (from investigation).

Yield/re-enter the registered ADV coroutine handler. The fifth standard chrome button (x=772) uses it to hide the text window: handler A fades the box out, and retail Himegari then waits in the engine (run-state 0x4000000) until a trigger enters handler B, which fades it back in.

Operands

It takes no operands.

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
  • jumps: it continues at another instruction of its frame

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 0x199): Ghidra /v2: op_0x199_yield_adv_coroutine@0x416440 clears the service-action trigger mask, selects the registered coroutine yield-A or yield-B PC according to ctx+0x6dbc8 bit 0x4000000 and the handlers at ctx+0x6da88/+0x6db28[depth], saves the current resume offset/state and the frame_script_resource_id at ctx+0x5f6bc, and redirects the current frame PC. SC0000's x=772 ADV button invokes it; the SO001 tooltip at source x=528 reads Window hide. Its handler A calls HIDEWIN.BIN only while adv_hide_window_enabled (G[0x62425]) is set, which retail Himegari never does (native-driven 2026-11-04/05); Kamidori's handler A always calls it and yields again into handler B.

Details

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

The handlers are per frame (op 0x7b), but the yield is engine-wide. With no yield entered (coroutine_runstate bit 0x4000000 clear) and handler A set, the op saves run_state | 0x6000000, clears the run state, saves pc+1 with the running script as owner (+0x5f6bc) and enters handler A. Otherwise, with handler B set, it clears 0x4000000, sets 0x2000000 and enters handler B. With no yield entered and no handler A it does nothing (the port used to jump to handler B; fixed 2026-11-05). Op 0x7c resumes only in the owner's script; a handler A that reaches op 0x7c without a second op 0x199 leaves the frame in the engine's hidden-window wait (engine-re.md, "ADV hide window: the engine's hidden-window wait").