1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-05 10:28:58 +00:00

Added hardwired tape present bit.

This commit is contained in:
Thomas Harte 2016-06-26 19:50:49 -04:00
parent c306d705e1
commit 2a2c3da5d4

View File

@ -50,6 +50,13 @@ enum Key: uint16_t {
};
class UserPortVIA: public MOS::MOS6522<UserPortVIA>, public MOS::MOS6522IRQDelegate {
public:
uint8_t get_port_input(Port port) {
if(!port) {
return 0x00; // TODO: bit 6 should be high if there is no tape, low otherwise
}
return 0xff;
}
};
class KeyboardVIA: public MOS::MOS6522<KeyboardVIA>, public MOS::MOS6522IRQDelegate {