mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-19 23:29:05 +00:00
Move VerticalState
to live with ScreenMode and FetchMode.
This commit is contained in:
parent
927e61484f
commit
40894964bc
@ -69,6 +69,16 @@ enum class MemoryAccess {
|
|||||||
Read, Write, None
|
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,
|
||||||
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,19 +9,11 @@
|
|||||||
#ifndef LineBuffer_hpp
|
#ifndef LineBuffer_hpp
|
||||||
#define LineBuffer_hpp
|
#define LineBuffer_hpp
|
||||||
|
|
||||||
|
#include "AccessEnums.hpp"
|
||||||
|
|
||||||
namespace TI {
|
namespace TI {
|
||||||
namespace TMS {
|
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.
|
// Temporary buffers collect a representation of each line prior to pixel serialisation.
|
||||||
struct LineBuffer {
|
struct LineBuffer {
|
||||||
LineBuffer() {}
|
LineBuffer() {}
|
||||||
@ -94,7 +86,7 @@ struct LineBuffer {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct LineBufferPointer {
|
struct LineBufferPointer {
|
||||||
int row, column;
|
int row = 0, column = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user