all repos — mgba @ d9f486fd6aec27eca693db3fa5f7a69d9a6b8baf

mGBA Game Boy Advance Emulator

GBA BIOS: Fix last commit
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Aug 2016 14:18:16 -0700
commit

d9f486fd6aec27eca693db3fa5f7a69d9a6b8baf

parent

6867400ca875277929f8aec1964c99d85cb0e1a9

1 files changed, 4 insertions(+), 3 deletions(-)

jump to
M src/gba/bios.csrc/gba/bios.c

@@ -349,10 +349,11 @@ break;

case 0x8: cpu->gprs[0] = sqrt((uint32_t) cpu->gprs[0]); break; - case 0x9: - cpu->gprs[0] = _ArcTan(cpu->gprs[0]); + case 0x9: + cpu->gprs[0] = (uint16_t) _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]); break; case 0xB: case 0xC: