chip8

CHIP-8 emulator
git clone git://git.christosmarg.xyz/chip8.git
Log | Files | Refs | README | LICENSE

commit 4c33a140bb0f80ca156f9e292c9efd634597da7a
parent b089101d50de1271b2f567ef6536b1fe2f70382a
Author: Christos Margiolis <christos@margiolis.net>
Date:   Thu,  3 Sep 2020 16:52:02 +0300

added windows compatibility (maybe)

Diffstat:
MREADME.md | 1-
Mchip8.c | 8+++++++-
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -12,7 +12,6 @@ Your typical CHIP-8 copy. This one uses SDL2 as a rendering API. ```shell $ cd path/to/chip8 $ make -$ cd bin $ ./chip8 [../path/to/ROM] ``` In order to install do diff --git a/chip8.c b/chip8.c @@ -1,11 +1,17 @@ #define _DEFAULT_SOURCE -#include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> #include <SDL2/SDL.h> +#ifdef _WIN_32 +typedef unsigned char uint8_t +typedef unsigned short uint16_t +typedef unsigned int uint32_t +#else +#include <inttypes.h> +#endif /* _WIN_32 */ #define TRUE 1 #define FALSE 0