summaryrefslogtreecommitdiff
path: root/chip8.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-08-16 23:05:55 +0930
committerDaniel Jones <admin@danieljon.es>2020-08-16 23:05:55 +0930
commit32336b183a5d3cbf64d2c67100afe036cf610694 (patch)
tree6e819be7850966f962554825ad5435fa6c139551 /chip8.h
parenteb19009d216f4fb0f7911b939b2f1bc698e40c79 (diff)
downloadchip8-32336b183a5d3cbf64d2c67100afe036cf610694.tar.gz
chip8-32336b183a5d3cbf64d2c67100afe036cf610694.zip
began chip8 interpreter, reading rom file
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