all repos — mgba @ b154457857d3367a4c0196a4abadeeb6c850ffdf

mGBA Game Boy Advance Emulator

GBA BIOS: More tiny fixes to ArcTan2
Vicki Pfau vi@endrift.com
Thu, 20 Apr 2017 23:18:51 -0700
commit

b154457857d3367a4c0196a4abadeeb6c850ffdf

parent

f4abdd6c4c475c5249754d184abc9c42d63c24b0

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M CHANGESCHANGES

@@ -39,7 +39,7 @@ - GB: Fix flickering when screen is strobed quickly

- FFmpeg: Fix overflow and general issues with audio encoding - Qt: Fix crash when changing audio settings after a game is closed - GBA BIOS: Fix ArcTan sign in HLE BIOS - - GBA BIOS: Fix ArcTan2 sign in HLE BIOS + - GBA BIOS: Fix ArcTan2 sign in HLE BIOS (fixes mgba.io/i/689) Misc: - SDL: Remove scancode key input - GBA Video: Clean up unused timers
M src/gba/bios.csrc/gba/bios.c

@@ -359,7 +359,8 @@ case 0x9:

cpu->gprs[0] = _ArcTan(cpu->gprs[0]); break; case 0xA: - cpu->gprs[0] = _ArcTan2(cpu->gprs[0], cpu->gprs[1]); + cpu->gprs[0] = (uint16_t) _ArcTan2(cpu->gprs[0], cpu->gprs[1]); + cpu->gprs[3] = 0x170; break; case 0xB: case 0xC: