Skip to content

Simple CHIP-8 emulator with graphic and assembler*

License

Doonort3/CHIP-8-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

изображение

Simple CHIP-8 emulator written in C++ using SDL2 for monochrome graphics. This emulator is not perfect in terms of code or working, but it can run simple games and programs.

Features

  • Full CHIP-8 CPU instructions
  • 64x32 pixel display
  • Keypad input mapped to PC
  • Load ROMs
  • Debug output for opcode execution

Build

Requirements: CMake (>=3.31), SDL2, development libs

git clone https://github.com/Doonort3/CHIP-8-emulator/
cd CHIP-8-emulator
mkdir build && cd build
cmake ..
make

For Windows, replace usleep (posix) with sleep (chrono) in main.cpp (114) or just use wsl

Using

./CHIP_8_emulator ../programs/<ROM>

Controls

CHIP-8 Key PC Key
0 X
1 1
2 2
3 3
4 Q
5 W
6 E
7 A
8 S
9 D
A Z
B C
C 4
D R
E F
F V

Have fun!

with games from 1970s or explore the code, which I have endeavored to write as simply as possible <3

References

https://github.com/JamesGriffin/CHIP-8-Emulator (ROMs)

https://github.com/wernsey/chip8 (Assembler)

https://en.wikipedia.org/wiki/CHIP-8 (Opcodes, logic, specs)

https://johnearnest.github.io/chip8Archive/ (ROMs)

About

Simple CHIP-8 emulator with graphic and assembler*

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published