2024-07-21 13:53:04 -04:00
|
|
|
#ifndef PPU_H
|
|
|
|
#define PPU_H
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#include "rom.h"
|
|
|
|
|
|
|
|
struct ppu {
|
|
|
|
uint8_t oam[64*4];
|
|
|
|
uint8_t vram[2048];
|
|
|
|
uint8_t palette[16*2];
|
|
|
|
uint16_t cycles, scanlines;
|
2024-07-21 14:48:29 -04:00
|
|
|
struct rom *rom;
|
2024-07-21 13:53:04 -04:00
|
|
|
};
|
|
|
|
extern struct ppu ppu;
|
|
|
|
|
|
|
|
void ppu_tick(void);
|
|
|
|
|
|
|
|
#endif /* PPU_H */
|