diff options
Diffstat (limited to 'src/ppu.h')
| -rw-r--r-- | src/ppu.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/ppu.h b/src/ppu.h new file mode 100644 index 0000000..ea427f7 --- /dev/null +++ b/src/ppu.h @@ -0,0 +1,14 @@ +#ifndef GBC_PPU_H +#define GBC_PPU_H + +#include "gb.h" + +void ppu_reset(GB *gb); +void ppu_tick(GB *gb, int tcycles); + +u8 ppu_read(GB *gb, u16 addr); // VRAM/OAM +void ppu_write(GB *gb, u16 addr, u8 val); +u8 ppu_read_reg(GB *gb, u16 addr); // FF40-FF4B, FF68-FF6B +void ppu_write_reg(GB *gb, u16 addr, u8 val); + +#endif |
