Cult-of-GBA / BIOS

A Game Boy Advance replacement BIOS.
MIT License
90 stars 7 forks source link

Prevent R0 from being clobbered in swi_Halt and swi_Stop #6

Closed skylersaleh closed 2 years ago

skylersaleh commented 2 years ago

Use R11 instead of R0 to hold intermediates since that will be restored in the swi_handler_done routine.

This fix addresses a bug that prevented Golden Sun from booting.

Fixes: https://github.com/Cult-of-GBA/BIOS/issues/3

DenSinH commented 2 years ago

Yep, looks good