summaryrefslogtreecommitdiff
path: root/chip8.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-08-17 19:51:43 +0930
committerDaniel Jones <admin@danieljon.es>2020-08-17 19:51:51 +0930
commit78af003371b6b651e1d9b005702e3d22cee951c7 (patch)
tree53c9b61139c4de10184a00397af20ddcce817b69 /chip8.h
parent7d60741c1393ebc0c572891cfeb19a25c4579ed6 (diff)
downloadchip8-78af003371b6b651e1d9b005702e3d22cee951c7.tar.gz
chip8-78af003371b6b651e1d9b005702e3d22cee951c7.zip
implement pixel XORing and wrapping
sprites are properly XOR'd to the display, setting the 0xF register as appropriate. sprites also wrap on the bottom and irght side of the screen. because you can't access negative video memory, wrpaping top to bottom and left to right isn't implemented
Diffstat (limited to 'chip8.h')
-rw-r--r--chip8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/chip8.h b/chip8.h
index 6018d40..3aaa8a8 100644
--- a/chip8.h
+++ b/chip8.h
@@ -17,6 +17,6 @@
int load_rom();
void chip8_init();
-void chip8_draw_sprite(int startx, int starty, uint8_t mem, uint8_t size);
+void chip8_draw_sprite(int startx, int starty, uint16_t mem, uint8_t size);
#endif