ITotalJustice / notorious_beeg

gba emulator written in c++23
https://notorious-beeg.netlify.app/
GNU General Public License v3.0
41 stars 4 forks source link

fiq banked regs are broken #72

Closed ITotalJustice closed 2 years ago

ITotalJustice commented 2 years ago

when a game switches to fiq, it uses fiq r8-14 banked regs. when going from fiq to any other mode, then r8-r12 should be restored to the normal general regs.

currently my emu doesnt do that, instead it does restore r13-14 but not r8-12. this breaks openlara as it now uses fiq mode for some interesting speedups. see https://github.com/XProger/OpenLara/commit/e821f236a27231830c5fd5f4ec0cb0a47b2ec1e1