2015-07-19 17:36:27 +00:00
|
|
|
//
|
|
|
|
// CRT.cpp
|
|
|
|
// Clock Signal
|
|
|
|
//
|
|
|
|
// Created by Thomas Harte on 19/07/2015.
|
|
|
|
// Copyright © 2015 Thomas Harte. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#include "CRT.hpp"
|
|
|
|
|
|
|
|
using namespace Outputs;
|
|
|
|
|
|
|
|
CRT::CRT(int cycles_per_line)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void CRT::output_sync(int number_of_cycles)
|
|
|
|
{
|
2015-07-19 20:48:14 +00:00
|
|
|
printf("[%d]\n", number_of_cycles);
|
2015-07-19 17:36:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CRT::output_level(int number_of_cycles, uint8_t *level, std::string type)
|
|
|
|
{
|
2015-07-19 20:48:14 +00:00
|
|
|
printf("[---:%d]", number_of_cycles);
|
2015-07-19 17:36:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CRT::output_data(int number_of_cycles, uint8_t *data, std::string type)
|
|
|
|
{
|
2015-07-19 20:48:14 +00:00
|
|
|
printf("[+++:%d]", number_of_cycles);
|
2015-07-19 17:36:27 +00:00
|
|
|
}
|