diff options
author | Daniel Jones <admin@danieljon.es> | 2020-08-17 19:51:43 +0930 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-08-17 19:51:51 +0930 |
commit | 78af003371b6b651e1d9b005702e3d22cee951c7 (patch) | |
tree | 53c9b61139c4de10184a00397af20ddcce817b69 /chip8.h | |
parent | 7d60741c1393ebc0c572891cfeb19a25c4579ed6 (diff) | |
download | chip8-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |