1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-22 08:16:42 +00:00

Allows the frame interrupt to be placed anywhere in the frame.

This commit is contained in:
Thomas Harte
2018-10-10 21:07:39 -04:00
parent 50e23f4a2e
commit f00f6c8c23
2 changed files with 39 additions and 24 deletions
+6 -4
View File
@@ -106,10 +106,9 @@ class Base {
uint8_t background_colour_ = 0;
// Internal mechanisms for position tracking.
HalfCycles half_cycles_into_frame_;
int column_ = 0, row_ = 0, output_column_ = 0;
int column_ = 0, row_ = 0;
int cycles_error_ = 0;
int access_pointer_ = 0;
HalfCycles half_cycles_before_internal_cycles(int internal_cycles);
// A helper function to output the current border colour for
// the number of cycles supplied.
@@ -156,7 +155,10 @@ class Base {
// Set the position, in cycles, of the two interrupts,
// within a line.
int end_of_frame_interrupt_position = 342;
struct {
int column = 342;
int row = 191;
} end_of_frame_interrupt_position;
int line_interrupt_position = -1;
// Enables or disabled the recognition of 0xd0 as a sprite