1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +00:00

Of course, changing the IRQ enable may immediately change the IRQ line. Signal if so.

This commit is contained in:
Thomas Harte 2016-11-26 09:35:44 +08:00
parent 73d30b9c00
commit e9d6566e9c

View File

@ -44,7 +44,13 @@ void Microdisc::set_control_register(uint8_t control)
set_is_double_density(!(control & 0x08)); set_is_double_density(!(control & 0x08));
// b0: IRQ enable // b0: IRQ enable
bool had_irq = get_interrupt_request_line();
irq_enable_ = !!(control & 0x01); irq_enable_ = !!(control & 0x01);
bool has_irq = get_interrupt_request_line();
if(has_irq != had_irq && delegate_)
{
delegate_->wd1770_did_change_interrupt_request_status(this);
}
// b7: EPROM select (0 = select) // b7: EPROM select (0 = select)
// b1: ROM disable (0 = disable) // b1: ROM disable (0 = disable)