0x2cf request-screen-mode
Opcode 0x2cf (719), draw. Investigated by OME, with high confidence (from investigation).
(mode) - switch the screen mode: 1 to a window, 0 to fullscreen; other values do nothing. A switch to the current mode does nothing; otherwise the switch stores display:ScreenMode and launches CALLBACK_WINDOW.BIN.
Operands
| # | Role | Types seen | Access |
|---|---|---|---|
| 1 | target screen mode (1 window, 0 fullscreen; other values ignored) | — |
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 | 1 |
4.33G (SYS4433) | Kamidori Alchemy Meister | no | — |
4.38D (SYS4438) | Soukoku no Arterial | no | — |
Evidence
- native-re on SYS4422, high confidence; Himegari AGE.EXE Ghidra /v2 and decoded script corpus (
vm-map/opcodes.toml opcode 0x2cf): Ghidra /v2: op_0x2cf_handler@0x425370 reads operand 1 and, when it is 0 or 1, calls display_toggle_screen_mode_and_menu_bar@0x412df0 with it. That switch returns at once when its target equals display_windowed (ctx+0x9a298), refuses to leave a window while display:ForceScreen is 1, sets the window style, attaches (window) or detaches (fullscreen) menu 110, flips display_windowed, stores display:ScreenMode, stamps ctx+0x55118 and calls script_launch_by_name(CALLBACK_WINDOW.BIN). No Himegari or Kamidori script calls it.
Details
OME’s notes on it, as the registry keeps them.
Port status (2026-11-13): the VM passes 0 and 1 to the shell-services native (ShellServices.RequestScreenMode); the front end's next frame switches as the menu does (ShellServices.SwitchScreenMode, which stores display:ScreenMode, shows the mode through the front end's IWindowDevice and queues CALLBACK_WINDOW.BIN). Neither shipped corpus calls the op.