Last active
May 19, 2023 18:29
-
-
Save ShadowOne333/51d0a1a1e6c61d594fce4fd876fba389 to your computer and use it in GitHub Desktop.
Enable the Debug Menu in-game by pressing L+R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asm65816 | |
// Script that enables debug mode if you hold L+R while the game boots | |
// OPTION 10 (Teleport) -- LEARN TELEPORT ALPHA | |
// OPTION 11 (Star α) -- LEARN STARSTORM ALPHA | |
// OPTION 12 (Star β) -- LEARN STARSTORM BETA | |
// OPTION 13 (Player 0), input player's name (english) | |
// OPTION 14 (Player 1), input player's name (kana?) | |
// OPTION 20 (Meter), set magicant hp/pp rolling flag (can't be undone lol, softlocks battles waiting for HP/PP to finish rolling) | |
ROM[0xC0B9B0] = { | |
STZ_a (0x436C) // Turn off the debug flag | |
JSL (DebugCheck) | |
} | |
DebugCheck: | |
LDA_a (0x0065) // Held buttons on controller 1 | |
BIT_i (0x0020) // JOY_L | JOY_R | |
BEQ (7) // Branch to "RTL" | |
// If we reached this, it means we were holding L+R while the game was booting | |
DEC_a (0x436C) // Enable debug flag | |
JSL (0xEFE689) // Jump to boot-up debug menu | |
RTL | |
// Fix broken debug options | |
ROMTBL[0xC3E874, 10, 9] = "Teleport[00]" // From MOTHER2 katakana "テレポ" | |
ROMTBL[0xC3E874, 10, 10] = "Star [8B][00]" // From MOTHER2 katakana "スターα" | |
ROMTBL[0xC3E874, 10, 11] = "Star [8C][00]" // From MOTHER2 katakana "スターβ" | |
ROMTBL[0xC3E874, 10, 12] = "Player 0[00]" // From MOTHER2 katakana "プレーヤー0" | |
ROMTBL[0xC3E874, 10, 13] = "Player 1[00]" // From MOTHER2 katakana "プレーヤー1" | |
ROMTBL[0xC3E874, 10, 19] = "Meter[00]" // From MOTHER2 katakana "メーター | |
// Change "tx6" text to "Next" | |
ROM[0xC454BF] = { | |
ASMLoadAddress0E(TXT_NEXT) | |
} | |
TXT_NEXT: | |
"Next[00]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment