1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Move VerticalState to live with ScreenMode and FetchMode.

This commit is contained in:
Thomas Harte 2023-02-13 09:54:29 -05:00
parent 927e61484f
commit 40894964bc
2 changed files with 13 additions and 11 deletions

View File

@ -69,6 +69,16 @@ enum class MemoryAccess {
Read, Write, None
};
enum class VerticalState {
/// Describes any line on which pixels do not appear and no fetching occurs, including
/// the border, blanking and sync.
Blank,
/// A line on which pixels do not appear but fetching occurs.
Prefetch,
/// A line on which pixels appear and fetching occurs.
Pixels,
};
}
}

View File

@ -9,19 +9,11 @@
#ifndef LineBuffer_hpp
#define LineBuffer_hpp
#include "AccessEnums.hpp"
namespace TI {
namespace TMS {
enum class VerticalState {
/// Describes any line on which pixels do not appear and no fetching occurs, including
/// the border, blanking and sync.
Blank,
/// A line on which pixels do not appear but fetching occurs.
Prefetch,
/// A line on which pixels appear and fetching occurs.
Pixels,
};
// Temporary buffers collect a representation of each line prior to pixel serialisation.
struct LineBuffer {
LineBuffer() {}
@ -94,7 +86,7 @@ struct LineBuffer {
};
struct LineBufferPointer {
int row, column;
int row = 0, column = 0;
};
}