Re: Arbitrary code execution in Red/Blue using the "8F" item
Posted by: The G-Meister
Date: 2015-09-18 14:50:54
It seems that even if we modify the "Bike speed" byte, we STILL can't cycle indoors… It seems Ash abides by the rules even when he's not told to >.<
Aside from that, you can use this code to get onto/off of a bicycle without changing the music, so if you feel like you're getting bored of the bike music, you can just use the first code to get on your bike and keep the music of the area you're in! I'm sure there's much better ways of changing the soundtrack if you're that preoccupied about it though. The amusing side effect is, when you go into a different area, the music has an abrupt key change as it fades out… but that's about it ;-;
Incase anyone feels like compacting this worthless dump, don't bother, seen as it's completely useless… as of yet, anyway.
Anyway, code:
Get OFF your bike, without music change (ws m)
ld a, $02
ld ($D6FF), a
ret
3E 02 EA FF D6 C9
Lemonade x2 (technically this can be anything that isn't 1)
TM34 x255
TM14 x201
Get ON your bike, without music change (ws m)
ld a, $01
ld ($D6FF), a
ret
3E 01 EA FF D6 C9
Lemonade x1
TM34 x255
TM14 x201