Skip to content

JosipKuci/Chip8-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An emulator of the popular Chip-8 interpreter from the mid 1970s It is made using the C programming language and the SDL2 graphics library It supports all games made for it. It was compiled and tested using the 32-bit mingw32 compiler on a windows 10 machine

How to compile and run

To compile the code, go to the Chip8 directory and run the command:

mingw32-make

Then to start the emulator, change into the directory and start the main.exe file by also specifying the ROM you want to play, for example:

main.exe .\INVADERS

This emulator works with every Chip-8 game, and there is a Space Invaders ROM included with the repository for testing

Controls and mapping

On the original Chip-8 the keys were mapped as follows:

123C
456D
789E
A0BF

In the emulator, the keys are mapped as:

1234
QWER
ASDF
YXCV

The keys can be remapped by changing the values of the keyboard_map array located at the start of the src\main.c file

Emulation speed control

As the Chip-8 does not define any clock cycles, the emulation speed is defined by the user/hardware. Use the key O to increase the delay and the key P to decrease it. By default, the delay is set to 0ms. The current delay is shown in the command prompt.

Screenshots



About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published