mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-12 08:30:05 +00:00
20 lines
445 B
C++
20 lines
445 B
C++
//
|
|
// IRQDelegatePortHandler.cpp
|
|
// Clock Signal
|
|
//
|
|
// Created by Thomas Harte on 04/09/2017.
|
|
// Copyright 2017 Thomas Harte. All rights reserved.
|
|
//
|
|
|
|
#include "../6522.hpp"
|
|
|
|
using namespace MOS::MOS6522;
|
|
|
|
void IRQDelegatePortHandler::set_interrupt_delegate(Delegate *const delegate) {
|
|
delegate_ = delegate;
|
|
}
|
|
|
|
void IRQDelegatePortHandler::set_interrupt_status(bool) {
|
|
if(delegate_) delegate_->mos6522_did_change_interrupt_status(this);
|
|
}
|