summaryrefslogtreecommitdiff
path: root/chip8.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-08-17 15:16:02 +0930
committerDaniel Jones <admin@danieljon.es>2020-08-17 15:16:02 +0930
commit7d60741c1393ebc0c572891cfeb19a25c4579ed6 (patch)
tree4e13404b3a19933155bed5ac5c85a3387e2de79f /chip8.h
parent43b01c12d1192830034807e664843f780df8b7bb (diff)
downloadchip8-7d60741c1393ebc0c572891cfeb19a25c4579ed6.tar.gz
chip8-7d60741c1393ebc0c572891cfeb19a25c4579ed6.zip
sprite drawing basic implementation
begin implementing sprite drawing, currently draws the chip8 fontset well, no idead about other sprites yet
Diffstat (limited to 'chip8.h')
-rw-r--r--chip8.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chip8.h b/chip8.h
index 4faa6e4..6018d40 100644
--- a/chip8.h
+++ b/chip8.h
@@ -13,9 +13,10 @@
#define KEY_SIZE 15
#define MEMORY_SIZE 4096
#define STACK_SIZE 16
-#define MAX_ROM_SIZE 0x1000 - 0x200 // memory size - reseved memory
+#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