1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-04 18:29:40 +00:00

Improved some commenting.

This commit is contained in:
Thomas Harte 2016-06-23 20:43:29 -04:00
parent 359ffb9aa7
commit 3c9183d034

View File

@ -137,7 +137,7 @@ void MOS6560::set_register(int address, uint8_t value)
_registers.backgroundColour = _colours[value >> 4];
break;
// TODO: audio, primarily
// TODO: the lightpen, etc
default:
break;
@ -250,6 +250,9 @@ uint16_t MOS6560::get_address()
void MOS6560::set_graphics_value(uint8_t value, uint8_t colour_value)
{
// TODO: there should be a further two-cycle delay on pixels being output; the reverse bit should
// divide the byte it is set for 3:1 and then continue as usual.
// determine output state; colour burst and sync timing are currently a guess
if(_horizontal_counter > _timing.cycles_per_line-4) _this_state = State::ColourBurst;
else if(_horizontal_counter > _timing.cycles_per_line-7) _this_state = State::Sync;