1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-26 08:49:37 +00:00

Fix nothing-to-do test.

This commit is contained in:
Thomas Harte 2023-01-02 15:04:08 -05:00
parent 475440dc70
commit a9f97ac871

View File

@ -218,7 +218,7 @@ void TMS9918<personality>::run_for(const HalfCycles cycles) {
// Convert 456 clocked half cycles per line to 342 internal cycles per line; // Convert 456 clocked half cycles per line to 342 internal cycles per line;
// the internal clock is 1.5 times the nominal 3.579545 Mhz that I've advertised // the internal clock is 1.5 times the nominal 3.579545 Mhz that I've advertised
// for this part. So multiply by three quarters. // for this part. So multiply by three quarters.
int int_cycles = this->clock_converter_.to_internal(cycles.as<int>()); const int int_cycles = this->clock_converter_.to_internal(cycles.as<int>());
if(!int_cycles) return; if(!int_cycles) return;
// There are two intertwined processes here, 'writing' (which means writing to the // There are two intertwined processes here, 'writing' (which means writing to the
@ -277,7 +277,7 @@ void TMS9918<personality>::run_for(const HalfCycles cycles) {
#define fetch(function, converter) \ #define fetch(function, converter) \
const int first_window = this->clock_converter_.converter(this->write_pointer_.column); \ const int first_window = this->clock_converter_.converter(this->write_pointer_.column); \
const int final_window = this->clock_converter_.converter(end_column); \ const int final_window = this->clock_converter_.converter(end_column); \
if(first_window != final_window) break; \ if(first_window == final_window) break; \
if(final_window != TMSAccessWindowsPerLine) { \ if(final_window != TMSAccessWindowsPerLine) { \
function<true>(first_window, final_window); \ function<true>(first_window, final_window); \
} else { \ } else { \