1
0
mirror of https://github.com/mre/mos6502.git synced 2024-11-24 11:31:00 +00:00

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

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)) => {