/cpp_chip8

CHIP-8/SuperChip/XO-Chip Emulator written in C++ using SDL

Primary LanguageC++GNU General Public License v2.0GPL-2.0

#cpp_chip8

Build Status Build status Coverity Scan Build Status Codacy Badge Coverage Status

CHIP-8, SuperChip and XO-Chip Emulator written in C++

Uses SDL2 to provide graphics and audio processing.

The game loop is strongly related to the way MonoGame/XNA works.

Compiling

Prerequisites

  • SDL
  • boost

Linux

make

Windows

Compile with Visual Studio 2017 (via the solution)

Running

Arguments

  • processor-type (schip) - Processor type. Can be one of chip, schip or xochip
  • allow-misaligned-opcodes (false) - Allow instuctions to be loaded from odd addresses
  • rom - ROM to use
  • graphics-count-row-hits - Graphics: count row hits
  • graphics-count-exceeded-rows - Graphics: count exceeded rows
  • graphics-clip (true) - Graphics: clip
  • cycles-per-frame - cycles per frame

examples

Linux

./cpp_chip8 Roms/SGAMES/ANT

Windows

cpp_chip8 Roms\SGAMES\ANT