|
|
@ -23,6 +23,11 @@ |
|
|
|
#define TILE_HEIGHT 8 |
|
|
|
#define TILE_HEIGHT 8 |
|
|
|
#define TILE_SIZE 16 |
|
|
|
#define TILE_SIZE 16 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PPU final : public ProcessingUnit { |
|
|
|
|
|
|
|
public: |
|
|
|
|
|
|
|
PPU(uint32_t frequency); |
|
|
|
|
|
|
|
~PPU(); |
|
|
|
|
|
|
|
|
|
|
|
enum LCDC : uint8_t { |
|
|
|
enum LCDC : uint8_t { |
|
|
|
None = 0, |
|
|
|
None = 0, |
|
|
|
BGandWindowEnable = BIT(0), |
|
|
|
BGandWindowEnable = BIT(0), |
|
|
@ -35,11 +40,6 @@ enum LCDC : uint8_t { |
|
|
|
LCDandPPUEnable = BIT(7), |
|
|
|
LCDandPPUEnable = BIT(7), |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
class PPU final : public ProcessingUnit { |
|
|
|
|
|
|
|
public: |
|
|
|
|
|
|
|
PPU(uint32_t frequency); |
|
|
|
|
|
|
|
~PPU(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum State : uint8_t { |
|
|
|
enum State : uint8_t { |
|
|
|
HBlank = 0, |
|
|
|
HBlank = 0, |
|
|
|
VBlank = 1, |
|
|
|
VBlank = 1, |
|
|
|