blob: 8f116c70e0cc7ff2501ef022014536ea503fd108 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#pragma once
#include "nes/util/cycle_count.hh"
namespace nes
{
class cpu;
class mapper;
class ppu
{
static constexpr auto vram_size = std::size_t{ 0x800 };
cycle_count current_cycles_;
cpu& cpu_;
mapper& mapper_;
std::uint8_t vram_[vram_size]{};
public:
explicit ppu(cpu& cpu, mapper& mapper);
ppu(ppu const&) = delete;
ppu(ppu&&) = delete;
auto operator=(ppu const&) -> ppu& = delete;
auto operator=(ppu&&) -> ppu& = delete;
auto step_to(cycle_count) -> void;
};
} // namespace nes
|