summaryrefslogtreecommitdiff
path: root/ppu.h
blob: 6bc8b5a8ed681a9bf69602605ff6b989b717c766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#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;
	struct rom *rom;
};
extern struct ppu ppu;

void ppu_tick(void);

#endif /* PPU_H */