mirror of https://github.com/mgba-emu/mgba.git
GBA BIOS: Fix Sqrt sign
This commit is contained in:
parent
a27209737b
commit
7c9b619f7b
1
CHANGES
1
CHANGES
|
@ -29,6 +29,7 @@ Bugfixes:
|
|||
- Qt: Add additional checks in CheatModel to prevent crashes
|
||||
- GBA Hardware: Fix Game Boy Player rumble in Pokemon Pinball
|
||||
- OpenGL: Fix fast-forward on some OpenGL drivers where it may block early
|
||||
- GBA BIOS: Fix Sqrt sign
|
||||
Misc:
|
||||
- Qt: Window size command line options are now supported
|
||||
- Qt: Increase usability of key mapper
|
||||
|
|
|
@ -213,7 +213,7 @@ void GBASwi16(struct ARMCore* cpu, int immediate) {
|
|||
_Div(gba, cpu->gprs[1], cpu->gprs[0]);
|
||||
break;
|
||||
case 0x8:
|
||||
cpu->gprs[0] = sqrt(cpu->gprs[0]);
|
||||
cpu->gprs[0] = sqrt((uint32_t) cpu->gprs[0]);
|
||||
break;
|
||||
case 0xA:
|
||||
cpu->gprs[0] = atan2f(cpu->gprs[1] / 16384.f, cpu->gprs[0] / 16384.f) / (2 * M_PI) * 0x10000;
|
||||
|
|
Loading…
Reference in New Issue