mirror of https://github.com/mgba-emu/mgba.git
Implement DivArm
This commit is contained in:
parent
fd5661e941
commit
dab27463a9
|
@ -105,6 +105,14 @@ void GBASwi16(struct ARMBoard* board, int immediate) {
|
||||||
gba->cpu.gprs[2] = abs(result.quot);
|
gba->cpu.gprs[2] = abs(result.quot);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 0x7:
|
||||||
|
{
|
||||||
|
div_t result = div(gba->cpu.gprs[1], gba->cpu.gprs[0]);
|
||||||
|
gba->cpu.gprs[0] = result.quot;
|
||||||
|
gba->cpu.gprs[1] = result.rem;
|
||||||
|
gba->cpu.gprs[2] = abs(result.quot);
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 0xB:
|
case 0xB:
|
||||||
_CpuSet(gba);
|
_CpuSet(gba);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue