CHIP-8 is an interpreted programming language, developed by Joseph Weisbecker CHIP-8 programs are run on a CHIP-8 virtual machine. It was made to allow video games to be more easily programmed for these computers.
keys to play are 1,2,3,4,5,6,7,8,9,a,b,c,d,e,f. Make sure CAPS LOCK is turned off
git clone https://github.com/Harryalways317/Chip-8.git
cd Chip-8
by default mac os uses clang compiler so no need to change makefile
make clean
make
The game rom files are included in roms folder
you can choose any game in roms folder just mention the name after roms/
./bin/main roms/INVADERS
Enjoy the game
- no bugs as i tested ill update if anything happens
git clone https://github.com/Harryalways317/Chip-8.git
cd Chip-8
replace the makefile with the file from windows-helpers/makefile if you are running MINGW32 compiler
replace the bin and lib folders with windows-helpers/bin and windows-helpers/lib
from file src/main.c
-
uncomment line 4 saying
//#include <Windows.h>
-
uncomment line 122 saying
Sleep(10)
-
comment the line 121 saying
usleep(1)
-
uncomment line 128 saying
//Beep(15000, 10 * chip8.registers.sound_timer);
make clean
make
The game rom files are included in roms folder
you can choose any game in roms folder just mention the name after roms/
./bin/main roms/INVADERS
Chip - 8 Emulator consists of 7 main components
- memory
- registers
- stack
- timers
- Keyboard / io
- Screen (Graphics)
- Opcode table
- SDL lib
- gcc or clang installed
i have used the SDL Library becasue it provides low level access to audio, keyboard, mouse, joystick, and graphics hardware and everyone knows SDL library is the basic requirement for games and emulators in c