summaryrefslogtreecommitdiff
path: root/chip8.h
blob: 6018d405accd5687a428a48926f4abefedf6c0e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef CHIP8_H
#define CHIP8_H

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <time.h>

#define WIDTH 64
#define HEIGHT 32
#define KEY_SIZE 15
#define MEMORY_SIZE 4096
#define STACK_SIZE 16
#define MAX_ROM_SIZE 0x1000 - 0x200 // memory size - reserved memory

int load_rom();
void chip8_init();
void chip8_draw_sprite(int startx, int starty, uint8_t mem, uint8_t size);

#endif