all repos — mgba @ 2e9a64a26ee99cc1105bc8967b67f66e896756c8

mGBA Game Boy Advance Emulator

Implement Sqrt
Jeffrey Pfau jeffrey@endrift.com
Wed, 01 May 2013 00:27:31 -0700
commit

2e9a64a26ee99cc1105bc8967b67f66e896756c8

parent

6ed3c18afd1d540a6f2bb9e23079066b0093d55e

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

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

@@ -122,6 +122,9 @@ gba->cpu.gprs[1] = result.rem;

gba->cpu.gprs[3] = abs(result.quot); } break; + case 0x8: + gba->cpu.gprs[0] = sqrt(gba->cpu.gprs[0]); + break; case 0xB: _CpuSet(gba); break;