Created
February 28, 2013 08:36
-
-
Save kanzure/5055220 to your computer and use it in GitHub Desktop.
vba-warping
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 vba | |
vba.load_rom() | |
# load my favorite state | |
vba.set_state(vba.load_state("mom-speech-1-before")) | |
# set warp memory | |
vba.set_memory_at(0xdcb5, 0x1) | |
vba.set_memory_at(0xdcb6, 0x1) | |
vba.set_memory_at(0xdcb8, 0x1) | |
vba.set_memory_at(0xdcb7, 0x1) | |
vba.set_memory_at(0xd001, 0xFF) | |
vba.set_memory_at(0xFF91, 0xF1) | |
vba.set_memory_at(0xFF9F, 0xF1) | |
# set pc ? | |
registers = vba.get_registers() | |
registers[0] = 0x6e11 | |
vba.Gb.writeRegisters(registers) | |
# set current bank | |
vba.Gb.setROMBank(0x25) | |
# run | |
vba.go() | |
# crash (something about the game pak?) |
Author
kanzure
commented
Feb 28, 2013
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment