mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-24 12:30:17 +00:00
Of course, changing the IRQ enable may immediately change the IRQ line. Signal if so.
This commit is contained in:
parent
73d30b9c00
commit
e9d6566e9c
@ -44,7 +44,13 @@ void Microdisc::set_control_register(uint8_t control)
|
||||
set_is_double_density(!(control & 0x08));
|
||||
|
||||
// b0: IRQ enable
|
||||
bool had_irq = get_interrupt_request_line();
|
||||
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)
|
||||
// b1: ROM disable (0 = disable)
|
||||
|
Loading…
Reference in New Issue
Block a user