summaryrefslogtreecommitdiff
path: root/chip8.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip8.h')
-rw-r--r--chip8.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/chip8.h b/chip8.h
new file mode 100644
index 0000000..7301c45
--- /dev/null
+++ b/chip8.h
@@ -0,0 +1,19 @@
+#ifndef CHIP8_H
+#define CHIP8_H
+
+#include <stdio.h>
+#include <stdint.h>
+#include <string.h>
+#include <errno.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 - reseved memory
+
+int load_rom();
+void chip8_init();
+
+#endif