1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-02 16:04:59 +00:00

Corrects sync generation.

This commit is contained in:
Thomas Harte 2019-10-08 21:29:17 -04:00
parent 7722596a3b
commit 5d06930df4

View File

@ -89,8 +89,8 @@ void Video::run_for(HalfCycles duration) {
Period(mode_params.end_of_output, mode_params.start_of_blank, output_border);
Period(mode_params.start_of_blank, mode_params.start_of_hsync, crt_.output_blank);
Period(mode_params.start_of_hsync, mode_params.start_of_blank, crt_.output_sync);
Period(mode_params.start_of_blank, mode_params.line_length, crt_.output_blank);
Period(mode_params.start_of_hsync, mode_params.end_of_hsync, crt_.output_sync);
Period(mode_params.end_of_hsync, mode_params.line_length, crt_.output_blank);
} else {
// Hard code the first three lines as vertical sync.
if(y < 3) {
@ -101,8 +101,8 @@ void Video::run_for(HalfCycles duration) {
Period(0, mode_params.end_of_blank, crt_.output_blank);
Period(mode_params.end_of_blank, mode_params.start_of_blank, output_border);
Period(mode_params.start_of_blank, mode_params.start_of_hsync, crt_.output_blank);
Period(mode_params.start_of_hsync, mode_params.start_of_blank, crt_.output_sync);
Period(mode_params.start_of_blank, mode_params.line_length, crt_.output_blank);
Period(mode_params.start_of_hsync, mode_params.end_of_hsync, crt_.output_sync);
Period(mode_params.end_of_hsync, mode_params.line_length, crt_.output_blank);
}
}