disable interrupts after BRK instruction

This commit is contained in:
Sam M W 2023-04-15 21:34:07 +01:00
parent a8d53f926d
commit 62424070a1
1 changed files with 1 additions and 0 deletions

View File

@ -277,6 +277,7 @@ impl<M: Bus> CPU<M> {
let pcl = self.memory.get_byte(0xfffe);
let pch = self.memory.get_byte(0xffff);
self.jump(((pch as u16) << 8) | pcl as u16);
self.registers.status.or(Status::PS_DISABLE_INTERRUPTS);
}
(Instruction::BVC, OpInput::UseRelative(rel)) => {