2016-06-05 14:51:07 +00:00
|
|
|
//
|
|
|
|
// 6560.hpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 05/06/2016.
|
|
|
|
// Copyright © 2016 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef _560_hpp
|
|
|
|
#define _560_hpp
|
|
|
|
|
|
|
|
#include "../../Outputs/CRT/CRT.hpp"
|
|
|
|
|
|
|
|
namespace MOS {
|
|
|
|
|
|
|
|
class MOS6560 {
|
|
|
|
public:
|
|
|
|
MOS6560();
|
|
|
|
Outputs::CRT::CRT *get_crt() { return _crt.get(); }
|
|
|
|
|
2016-06-05 16:11:12 +00:00
|
|
|
uint16_t get_address();
|
2016-06-05 20:28:06 +00:00
|
|
|
void set_graphics_value(uint8_t value, uint8_t colour_value);
|
2016-06-05 16:11:12 +00:00
|
|
|
|
|
|
|
void set_register(int address, uint8_t value);
|
|
|
|
|
2016-06-05 14:51:07 +00:00
|
|
|
private:
|
|
|
|
std::unique_ptr<Outputs::CRT::CRT> _crt;
|
2016-06-05 18:05:31 +00:00
|
|
|
|
|
|
|
bool _interlaced, _wide_characters;
|
|
|
|
uint8_t _first_column_location, _first_row_location;
|
|
|
|
uint8_t _number_of_columns, _number_of_rows;
|
|
|
|
uint16_t _character_cell_start_address, _video_matrix_start_address;
|
2016-06-05 14:51:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _560_hpp */
|