pret / pokeruby

Decompilation of Pokémon Ruby/Sapphire
793 stars 223 forks source link

Match SortPokedex #793

Closed ghost closed 4 years ago

ghost commented 4 years ago

The assembly for comparing r5 is lsr r5, r1, #0x18, so having that be a bool32 makes no sense. After I set r5 to the same type as i, and moved the variables to the top to prevent the cross jump optimization, I found the asm was no longer needed!

GriffinRichards commented 4 years ago

This doesn't match

ghost commented 4 years ago

Fixed it!