Re: Arbitrary code execution in Red/Blue using the "8F" item
Posted by: Couldntthinkofaname
Date: 2017-07-03 08:47:03
This code will force Mewtwo to reappear in Cerulean cave if you have already fought him. This can be used an infinite number of times for infinite Mewtwos.
8f
any item xany qnty
Lemonade x1
Soda Pop x4
Thunderstone x95
TM16 x119
TM34 x192
TM13 x201
ld a,01 ; a = 1
dec a ; a = 0, necessary because you can't have 0 of an item
inc b ; useless filler
ld hl,$d85f ; hl = d85f
ld (hl),a ; d85f = 0
ld ($d5c0),a ; d5c0 = 0
ret ; return
Sorry for longevity, I tried my best to avoid duplicate/glitch items. Enjoy!