* start GPU shit: draw BG0 16-color.

* fix a few DMA bugs.
* fix a bug where some code could still run right after a halt instruction.
* fix VRAM mapping, too. I'm an idiot.
This commit is contained in:
StapleButter
2017-01-18 17:57:12 +01:00
parent d30e6956fa
commit d7c1d2a2cd
10 changed files with 244 additions and 65 deletions

View File

@ -228,7 +228,7 @@ s32 ARM::Execute(s32 cycles)
if (Halted)
{
if (NDS::HaltInterrupted(Num))
Halted = false;
Halted = 0;
else
return cycles;
}
@ -283,6 +283,7 @@ s32 ARM::Execute(s32 cycles)
}
// TODO optimize this shit!!!
if (Halted) return cycles;
if (NDS::HaltInterrupted(Num))
{
if (NDS::IME[Num]&1)