summaryrefslogtreecommitdiff
path: root/ppu.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppu.h')
-rw-r--r--ppu.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/ppu.h b/ppu.h
new file mode 100644
index 0000000..1527b93
--- /dev/null
+++ b/ppu.h
@@ -0,0 +1,23 @@
1#ifndef PPU_H
2#define PPU_H
3
4#include <stdio.h>
5#include <stdint.h>
6
7#include "rom.h"
8
9struct ppu {
10 uint8_t oam[64*4];
11 uint8_t vram[2048];
12 uint8_t palette[16*2];
13 uint16_t cycles, scanlines;
14 /* copied from rom */
15 uint8_t *chr_rom;
16 size_t chr_rom_size;
17 enum screen_mirroring mirror;
18};
19extern struct ppu ppu;
20
21void ppu_tick(void);
22
23#endif /* PPU_H */