2017-09-04 18:26:04 +00:00
|
|
|
//
|
|
|
|
// IRQDelegatePortHandler.cpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 04/09/2017.
|
2018-05-13 19:19:52 +00:00
|
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
2017-09-04 18:26:04 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "../6522.hpp"
|
|
|
|
|
|
|
|
using namespace MOS::MOS6522;
|
|
|
|
|
2024-11-30 03:43:54 +00:00
|
|
|
void IRQDelegatePortHandler::set_interrupt_delegate(Delegate *const delegate) {
|
2017-09-04 18:26:04 +00:00
|
|
|
delegate_ = delegate;
|
|
|
|
}
|
|
|
|
|
2020-05-30 04:37:06 +00:00
|
|
|
void IRQDelegatePortHandler::set_interrupt_status(bool) {
|
2017-09-04 18:26:04 +00:00
|
|
|
if(delegate_) delegate_->mos6522_did_change_interrupt_status(this);
|
|
|
|
}
|