Game crashes when using 8F
Posted by: Blendy
Date: 2020-02-01 17:27:15
Pokemon Red (English)
Party pokemon:
Kanghaskan
223 HP Pidgey
Parasect
Onix
Tentacool
Arbok
And code:
8f
Lemonade x25
TM34 x39
TM11 x1
Burn Heal x1
I used https://eldred.fr/gbz80toitems3/ to convert the asm code to items, (im new to gbz80 coding) my original code was:
ld A, 25
ld ($D327), A
And I was trying to convert the amount of Burn heals to 25
Any clue on why that happens?
Edit: I changed TM11 x1 to TM11 x201 to add ret at the end of the asm code, like this:
ld A, 25
ld ($D327), A
ret
Edit2: As I used $D322 (default in converter) to write the data i added an item at the top of the bag so it starts executing at the 3rd item(lemonade not tm34)