1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-19 08:31:11 +00:00
CLK/Components/6522/6522.hpp

33 lines
556 B
C++
Raw Normal View History

//
// 6522.hpp
// Clock Signal
//
// Created by Thomas Harte on 06/06/2016.
// Copyright © 2016 Thomas Harte. All rights reserved.
//
#ifndef _522_hpp
#define _522_hpp
#include <cstdint>
namespace MOS {
template <class T> class MOS6522 {
public:
MOS6522() : _data_direction{0, 0} {}
void set_register(int address, uint8_t value) {}
uint8_t get_register(int address) {return 0xff;}
private:
uint16_t _interval_timers[2];
uint8_t _shift_register;
uint8_t _input_latches[2];
uint8_t _data_direction[2];
};
}
#endif /* _522_hpp */