-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
I found possible copypast issue in CIA::process_irq(&mut self) function (see link below).
Perhaps timer B is needed to check after timer A?
Lines 479 to 504 in 3e9d295
| pub fn process_irq(&mut self) { | |
| if self.timer_a.irq_next_cycle { | |
| if self.trigger_irq(1) { | |
| if self.is_cia1 { | |
| as_mut!(self.cpu_ref).set_cia_irq(true); | |
| } | |
| else { | |
| as_mut!(self.cpu_ref).set_nmi(true); | |
| } | |
| } | |
| self.timer_a.irq_next_cycle = false | |
| } | |
| if self.timer_a.irq_next_cycle { | |
| if self.trigger_irq(2) { | |
| if self.is_cia1 { | |
| as_mut!(self.cpu_ref).set_cia_irq(true); | |
| } | |
| else { | |
| as_mut!(self.cpu_ref).set_nmi(true); | |
| } | |
| } | |
| self.timer_a.irq_next_cycle = false | |
| } | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels