mirror of
https://github.com/TomHarte/CLK.git
synced 2024-08-16 16:28:59 +00:00
These interrupts apparently last only 64µs at most.
This commit is contained in:
parent
f232a12fad
commit
df3fff51c7
@ -292,12 +292,12 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin
|
||||
signal_interrupt(Interrupt::RealTimeClock);
|
||||
}
|
||||
|
||||
// if(_fieldCycles < real_time_clock_interrupt_time+128 && _fieldCycles + cycles >= real_time_clock_interrupt_time+128)
|
||||
// {
|
||||
// update_audio();
|
||||
// _interrupt_status &= ~Interrupt::RealTimeClock;
|
||||
// evaluate_interrupts();
|
||||
// }
|
||||
if(_fieldCycles < real_time_clock_interrupt_time+128 && _fieldCycles + cycles >= real_time_clock_interrupt_time+128)
|
||||
{
|
||||
update_audio();
|
||||
_interrupt_status &= ~Interrupt::RealTimeClock;
|
||||
evaluate_interrupts();
|
||||
}
|
||||
|
||||
else if(_fieldCycles < display_end_interrupt_time && _fieldCycles + cycles >= display_end_interrupt_time)
|
||||
{
|
||||
@ -305,12 +305,12 @@ unsigned int Machine::perform_bus_operation(CPU6502::BusOperation operation, uin
|
||||
signal_interrupt(Interrupt::DisplayEnd);
|
||||
}
|
||||
|
||||
// if(_fieldCycles < display_end_interrupt_time+128 && _fieldCycles + cycles >= display_end_interrupt_time+128)
|
||||
// {
|
||||
// update_audio();
|
||||
// _interrupt_status &= ~Interrupt::DisplayEnd;
|
||||
// evaluate_interrupts();
|
||||
// }
|
||||
if(_fieldCycles < display_end_interrupt_time+128 && _fieldCycles + cycles >= display_end_interrupt_time+128)
|
||||
{
|
||||
update_audio();
|
||||
_interrupt_status &= ~Interrupt::DisplayEnd;
|
||||
evaluate_interrupts();
|
||||
}
|
||||
|
||||
_fieldCycles += cycles;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user