Closed ITotalJustice closed 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
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