chip-8

chip 8 emulator
Contents

pedantic fallbacks for sys and argc

Arjun Choudhary contact@arjunchoudhary.com

commit: 368879f parent: 3893ba8
1 files changed, 3 insertions(+), 0 deletions(-)
Mmain.c+3-0
M · main.c +3, -0
 1@@ -10,6 +10,7 @@
 2 #include <sys/stat.h>
 3 #include <time.h>
 4 #include <unistd.h>
 5+#include <sys/types.h>
 6 
 7 /*** data ***/
 8 // opcode store
 9@@ -561,8 +562,10 @@ SDL_Scancode keymappings[16] = {
10     SDL_SCANCODE_Z, SDL_SCANCODE_X, SDL_SCANCODE_C, SDL_SCANCODE_V
11 };
12 
13+int usleep(unsigned int usec);
14 int main(int argc, char* argv[])
15 {
16+    (void)argc;
17     const Uint8* state = SDL_GetKeyboardState(NULL);
18     chip8_initialize();
19     chip8_load_program(argv[1]);