1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Discovered that this is another meaningful usage of using.

This commit is contained in:
Thomas Harte 2016-07-04 19:10:10 -04:00
parent df533874f0
commit 82b0bc9b58
2 changed files with 5 additions and 1 deletions

View File

@ -286,7 +286,7 @@ template <class T> class MOS6522 {
void set_port_output(Port port, uint8_t value, uint8_t direction_mask) {}
bool get_control_line(Port port, Line line) { return true; }
void set_control_line_output(Port port, Line line, bool value) {}
// void set_interrupt_status(bool status) {}
void set_interrupt_status(bool status) {}
// Input/output multiplexer
uint8_t get_port_input(Port port, uint8_t output_mask, uint8_t output)

View File

@ -63,6 +63,8 @@ class UserPortVIA: public MOS::MOS6522<UserPortVIA>, public MOS::MOS6522IRQDeleg
printf("Tape motor %s\n", value ? "on" : "off");
}
}
using MOS6522IRQDelegate::set_interrupt_status;
};
class KeyboardVIA: public MOS::MOS6522<KeyboardVIA>, public MOS::MOS6522IRQDelegate {
@ -108,6 +110,8 @@ class KeyboardVIA: public MOS::MOS6522<KeyboardVIA>, public MOS::MOS6522IRQDeleg
}
}
using MOS6522IRQDelegate::set_interrupt_status;
private:
uint8_t _columns[8];
uint8_t _activation_mask;