/chip8em

chip 8 emulator written in C

Primary LanguageC

chip8em

This is a CHIP-8 emulator recreated using C.

Sample image of Pong gameplay

Requirements:

To use this emulator, you need the SDL library to be installed (SDL 2). The path to the header files must be included in the command line usage, following the -I flag.

Usage:

gcc main.c ./include/instruct.c -I/*PATH_TO_SDL_HEADER* -I./include/ -F*PATH_TO_FRAMEWORKS* -framework SDL2

To change the window size, use the videoScale variable to give an integer multiplier to the 64x32 base resolution. To change clock speed, use the cycleDelay variable to edit the time in ms between cycles.

romFilename is a string with the path to the .ch8 ROM filename.

Where to get ROMS?

All roms I used for testing were from this repo: https://github.com/dmatlack/chip8/tree/master/roms/games.