Skip to content
Prev Previous commit
Next Next commit
Ocarina of Time's map select note: warps into areas the story had not…
… reached and into dungeons from outside worked in play
  • Loading branch information
UserDerezzed committed Nov 9, 2026
commit b8ec25b853cdecf8d8aa2f4cf6e10bcdc56ab821
4 changes: 2 additions & 2 deletions dm/games/0400486024DEC000/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ The game autosaves into `slot_00` and `slot_01`, with `option.sav` and `account.
- "Instant warp" branches the first word of the Main sequence's per-frame update (`main+0x3303CA0`, `pacibsp`) to a cave at `main+0x3C46E70`–`0x3C46EFF`, `0x3C46F28`–`0x3C46F3F` and `0x3C46F48`–`0x3C46FBB`, in the zero padding after the text, clear of the free camera (`0x3C46C00`–`0x3C46E6F`) and god mode (`0x3C46F00`–`0x3C46F27`) caves. When the flag word `main+0x4E9FF20` is set, the cave clears it, builds the arg with those four parameters (names copied from the game's own read-only strings, values pointing at strings in `.bss`), calls the request, and writes `0x100` + its result to `main+0x4E9FF24` (`0x200` with no manager). It then runs the `pacibsp` and returns to the update. The update reads only `x0`, and the cave keeps `x0`, `x1`, `x19`, `x20`, the frame and `sp`.
- A location, on the press, writes its banc, start position, arrival event and `Dm_SY_BancChangeGo` to `main+0x4E9FF28` / `0x4E9FF48` / `0x4E9FF78` / `0x4E9FFA8` and sets the flag. It does this only while the hook word reads the branch (Instant warp on), so a press with Instant warp off never fires later, and only once per press (a latch at `main+0x4E9FFF8`). It also marks its door redirect as used.
- **The scratch words.** `main+0x4E9FF10`–`0x4E9FFFF` are in the last 0x5B38 bytes of `.bss` (`0x4E9A4C8`–`0x4EA0000`). No `adrp` pair in the text reaches past `main+0x4E9A4C0`, a single pointer. A dump of the range after 20 minutes of play held nothing else.
- **Tested** on an M3 Max in the Mac app, from the Market's and Hyrule Field's exits: same-age and cross-age warps (child Link to `HyruleField_Adult`) arrived and stopped after one change. Instant warp: ZL+ZR+Down warped in play, in this layout of one switch and 48 locations. The warp logic also ran in a VM simulator on the recorded write sequences: pre-load, exit, area switch, arrival, the next door.
- **Open:** warping into an area the story has not reached yet, or into a dungeon from the outside, has not been tried. Whether the request can start the flow when no loading zone of the area has loaded it was not traced (`OneShotBeforehandLoadEventRequestRegister`); it worked where it was tried.
- **Tested** on an M3 Max in the Mac app, from the Market's and Hyrule Field's exits: same-age and cross-age warps (child Link to `HyruleField_Adult`) arrived and stopped after one change. Instant warp: ZL+ZR+Down warped in play, in this layout of one switch and 48 locations. Warps into areas the story had not reached yet and into dungeons from outside worked too. The warp logic also ran in a VM simulator on the recorded write sequences: pre-load, exit, area switch, arrival, the next door.
- **Not traced:** whether the request loads an event flow that no loading zone of the area has loaded (`OneShotBeforehandLoadEventRequestRegister`). It worked everywhere it was tried.

## Driving it on the Mac

Expand Down
Loading