Code Monkey home page Code Monkey logo

chip-8-interpreter's Introduction

CHIP-8 Interpreter

CHIP-8 Interpreter built in C++. This program essentially interprets the opcodes inside .ch8 files, emulating the state the files themselves, and ultimately stays true to the original specifications.

Pic of the interpreter displaying the IBM logo

! Note !

It is illegal to distribute ROMs online. I cannot upload any ROMs to this repository!

History

CHIP-8 is an interpreted programming language developed by Joseph Weisbecker, a microprocessor and microcomputer researcher. It was mainly employed in early computers such as the COSMAC VIP and the Telemac 1800 for programming video games. Read more about it here.

How to Run

This assumes you have a ROM on disk.

  1. Install a C++ compiler and the SDL Development Library (I'll be using GCC for this quick tutorial). Be sure to add them to PATH.
  2. Download or clone this repository
  3. Extract the SDL contents into the repository folder
    1. Feel free to install SDL somewhere else, but you will have to modify the path variables in Makefile.
  4. Run the following commands in the terminal:
    1. mingw32-make
    2. CHIP-8

To-Do

  • Add options and GUI features for better customization and user experience (increase and adjust resolution, turn on debugging mode, open files through a GUI instead of typing the filename)
  • Improve interpreter's compatibility for other games (Pong, Space Invaders)
  • Optimize emulator code (making use of STL arrays over C-style arrays for flexibility)
  • Upgrade to SCHIP, because why not?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.