2016-06-07 01:56:02 +00:00
|
|
|
//
|
|
|
|
// 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 {
|
|
|
|
|
2016-06-07 23:15:18 +00:00
|
|
|
template <class T> class MOS6522 {
|
2016-06-07 01:56:02 +00:00
|
|
|
public:
|
2016-06-07 23:15:18 +00:00
|
|
|
MOS6522() : _data_direction{0, 0} {}
|
2016-06-07 01:56:02 +00:00
|
|
|
|
2016-06-07 23:15:18 +00:00
|
|
|
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];
|
2016-06-07 01:56:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _522_hpp */
|