Skip to content

ethanjianglape/c8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

c8

c8 is an emulator for the CHIP-8 microprocessor.

You can find example CHIP-8 programs to run here.

You can also use this CHIP-8 compiler to write and compile programs.

Example Image

Dependencies

Building

Ensure libsfml-dev is installed, then:

cmake -B build
cmake --build build

The executable will be at build/bin/c8.

Running

Running ./build/bin/c8 by itself will start the emulator with a default program loaded into memory that prints "C8" onto the screen.

To run a CHIP-8 program:

./build/bin/c8 yourProgram.bin

To start paused, use the -p flag:

./build/bin/c8 -p yourProgram.bin

Features

  • Pause and resume emulation at any time
  • Step through CPU cycles one at a time
  • Rewind execution up to 1,000 cycles
  • Real-time CPU frequency and FPS display
  • Start paused with the -p flag

About

An emulator for the CHIP-8 microprocessor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors