mirror of
https://github.com/daniel5151/ANESE.git
synced 2024-05-17 19:50:17 -04:00
Update cpu.cc
This commit is contained in:
parent
f19d1d0304
commit
9f0c11c6e3
|
@ -61,8 +61,9 @@ void CPU::service_interrupt(Interrupts::Type interrupt, bool brk /* = false */)
|
|||
|
||||
switch (interrupt) {
|
||||
case Interrupts::IRQ:
|
||||
if (brk || !this->reg.p.i)
|
||||
if (brk || !this->reg.p.i) {
|
||||
this->reg.pc = this->read16(0xFFFE);
|
||||
}
|
||||
break;
|
||||
case Interrupts::RESET: this->reg.pc = this->read16(0xFFFC); break;
|
||||
case Interrupts::NMI: this->reg.pc = this->read16(0xFFFA); break;
|
||||
|
|
Loading…
Reference in a new issue