No apu emulation so if Bomberman uses an apu irq that would explain the crash.
I haven't tried the test roms yet.
Code: Select all
Exec6502(&m6502,55);
Exec6502(&m6502,58);
cycles += 113
if (sclines != 241) {
Ppu_Render_Line(&sclines, &m6502);
} else {
ppu_run_info.vbl_bit = 0x80;
Exec6502(&m6502,3);
Ppu_Render_Line(&sclines, &m6502);
if (ppu_run_info.bNmiFired) {
Int6502(&m6502,INT_NMI);
ppu_run_info.bNmiFired = 0;
}
Exec6502(&m6502,51);
Exec6502(&m6502,58);
cycles += 113;
sclines++;
}
sclines++;
if (262 == sclines) {
sclines = 0;
}
Code: Select all
if (bSprHit && bSprZeroCheck) {
uint32 cpu_cycles = fx / 3;
Exec6502(m6502, cpu_cycles);
ppu_run_info.spr_zero_bit = 0x40;
Exec6502(m6502, 113-cpu_cycles);
//(*cpu_sclines)++; // buggy
bSprZeroCheck = 0;
}