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:
parent
a8d53f926d
commit
62424070a1
@ -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)) => {
|
||||
|
Loading…
Reference in New Issue
Block a user