mirror of https://github.com/mgba-emu/mgba.git
GBA BIOS: More tiny fixes to ArcTan2
This commit is contained in:
parent
16023b2994
commit
c802e66e3a
2
CHANGES
2
CHANGES
|
@ -20,7 +20,7 @@ Bugfixes:
|
|||
- 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:
|
||||
- Qt: Improved HiDPI support
|
||||
- Feature: Support ImageMagick 7
|
||||
|
|
|
@ -358,7 +358,8 @@ void GBASwi16(struct ARMCore* cpu, int immediate) {
|
|||
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:
|
||||
|
|
Loading…
Reference in New Issue