Skip to content
LuigiBlood edited this page Jan 15, 2021 · 7 revisions

Relevant Info

0x001010 - Must be 0x2129FFF8 for LeoDriveExist()
0x09FF00 - Region Info (0xC3 for JAPAN, 0x04 for USA)
0x0A0000 - Font Bank
0x140000 - Sound Bank

80260000 - IPL Code is loaded here

Launching a Disk Game

  • Put Disk ID Info in 800001A0 (leoBootID). The Disk System Info is also checked at the same time.
    • Equivalent to LeoReadDiskID().
  • Load into Entrypoint N amount of blocks starting from LBA 24 (0 in SDK), both specified in Disk System Data.
    • Equivalent to LeoReadWrite(*, OS_READ, 0, *entrypoint, *N, *queue);
  • Boot Disk Game.
    • Equivalent to LeoBootGame(), except there's no descrambling for the first 0x100 bytes.
    • Put System in the same state as after IPL3 Bootstrap.
    • Write Disk Region bytes to 80000010, 80000090, 80000110, 80000190 (will be reused by libleo in the disk game).
    • Jump to Entrypoint.