From 78af003371b6b651e1d9b005702e3d22cee951c7 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Mon, 17 Aug 2020 19:51:43 +0930 Subject: 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 --- chip8.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chip8.h') 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 -- cgit v1.2.3