Skip to content

forChin/chip8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHIP-8 Interpreter

CHIP-8 is an interpreted minimalist programming language that enjoyed relative success during the late 1970s and early 1980s as a popular language for the development of simple video games. You can run these video games written in Chip8 using my interpreter.

Chip8-games

Getting Started

Requirements

Below is some commands that can be used to install the required SDL2 package.

On Ubuntu 14.04 and above:
apt install libsdl2-dev

On macOS:
brew install sdl2 pkg-config

Usage

Before start the interpreter put your preferenced values in '.env' file.

  WINDOW_WIDTH=640
  WINDOW_HEIGHT=320

  GAME_ROM_PATH=roms/PONG2

  OPCODES_PER_SECOND=300

To run the program use Makefile:
make run

Controls

Original CHIP-8 keyboard layout is mapped to PC keyboard as follows:

|1|2|3|C| => |1|2|3|4|
|4|5|6|D| => |Q|W|E|R|
|7|8|9|E| => |A|S|D|F|
|A|0|B|F| => |Z|X|C|V|

A few notes

  • You can find video games to run in roms folder.
  • The graphics of games are flicker because it's the way CHIP-8 designed, but my project includes the ability to reduce flickering by simulating the behaviour of old phosphor displays. The pixels of phosphor displays glow for several milliseconds after being turned off which increases the appearance of ghosting.

About

Interpreter for 70's video games.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published