GBHawk: Pass all sound tests
This commit is contained in:
parent
087586bc49
commit
26b1a2dff0
|
@ -35,17 +35,17 @@ namespace BizHawk.Emulation.Common.Components.LR35902
|
|||
IDLE,
|
||||
IDLE,
|
||||
IDLE,
|
||||
IDLE,
|
||||
IDLE,
|
||||
DEC16, SPl, SPh,
|
||||
IDLE,
|
||||
WR, SPl, SPh, PCh,
|
||||
INT_GET, // NOTE: here is where we check for a cancelled IRQ
|
||||
DEC16, SPl, SPh,
|
||||
IDLE,
|
||||
INT_GET, W,// NOTE: here is where we check for a cancelled IRQ
|
||||
DEC16, SPl, SPh,
|
||||
WR, SPl, SPh, PCl,
|
||||
IDLE,
|
||||
IDLE,
|
||||
IDLE,
|
||||
IDLE,
|
||||
TR, PCl, W,
|
||||
ASGN, PCh, 0,
|
||||
IDLE,
|
||||
|
|
|
@ -387,9 +387,6 @@ namespace BizHawk.Emulation.Common.Components.LR35902
|
|||
case INT_GET:
|
||||
// check if any interrupts got cancelled along the way
|
||||
// interrupt src = 5 sets the PC to zero as observed
|
||||
|
||||
Console.WriteLine(int_src);
|
||||
|
||||
if (int_src == 0)
|
||||
{
|
||||
if (interrupt_enable.Bit(0)) { interrupt_src -= 1; }
|
||||
|
@ -429,8 +426,7 @@ namespace BizHawk.Emulation.Common.Components.LR35902
|
|||
|
||||
if ((interrupt_src & interrupt_enable) == 0) { FlagI = false; }
|
||||
|
||||
Regs[W] = INT_vectors[int_src];
|
||||
|
||||
Regs[cur_instr[instr_pntr++]] = INT_vectors[int_src];
|
||||
break;
|
||||
}
|
||||
totalExecutedCycles++;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue