summaryrefslogtreecommitdiff
path: root/chip8.h
diff options
context:
space:
mode:
Diffstat (limited to 'chip8.h')
-rw-r--r--chip8.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chip8.h b/chip8.h
index e16274d..6779567 100644
--- a/chip8.h
+++ b/chip8.h
@@ -12,8 +12,14 @@
#define HEIGHT 32
#define KEY_SIZE 15
#define MEMORY_SIZE 4096
+#define REGISTER_COUNT 16
#define STACK_SIZE 16
#define MAX_ROM_SIZE 0x1000 - 0x200 // memory size - reserved memory
+#define PROGRAM_START 0x200
+#define FONT_WIDTH 5
+#define FONT_BYTE_SIZE 80
+#define BYTE_MASK 0x80
+#define PIXEL_COLOR 0xFFFFFF
int load_rom();
void chip8_init();