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.

0x5 ret

Opcode 0x5 (5), control. Investigated by OME, with high confidence (from investigation).

() - pop the current frame's local return stack and resume at the popped code offset unless it is -1; when a run-state snapshot is pending on ctx+0x5f2f4/+0x5f2f8 it is restored. Local calls (op 0x8f) and the native callback dispatches push the return entry, so callback bodies are local subroutines that return to the waiting opcode. The exception is a click in the modal hotspot waits (ops 0x91/0x92/0x95), which redirects without a push, so that callback's ret pops the enclosing call.

Operands

It takes no operands.

It works with 0x8f.

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:

  • jumps: it continues at another instruction of its frame
  • ends: it ends its frame, the scene or the run, itself or because a frame it ran did

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 0x5): Ghidra /v2: op_0x5_handler@0x417ad0 decrements ret_stack_a[cur] and redirects frame_pc to codebase + ret_stack_b[...]*4 when that entry is not 0xffffffff, then pops the saved run-state stack if non-empty. vm_return_stack_push_pc@0x405330 is called by timed_callback_sequence_tick, adv_input_dispatch_callbacks, adv_interpreter_tick, adv_input_service_poll and two helpers before redirecting to a callback. Corpus: every hotspot/mouse/joy/timed callback target (0x90 operands 5-7, 0xcc 2, 0xfb 2, 0xd4 3-4) and 72,792 of 72,794 local-call targets reach ret; coroutine handlers registered by 0x7b end at 0x7c instead.