GBA BIOS: Fix last commit
Jeffrey Pfau jeffrey@endrift.com
Sat, 13 Aug 2016 14:18:16 -0700
1 files changed,
4 insertions(+),
3 deletions(-)
jump to
M
src/gba/bios.c
→
src/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: