GithubHelp home page GithubHelp logo

chip-8's Introduction

Chip-8 Javascript Interpreter

About

This is a personal project and a coding challenge to build an emulator in Javascript. Chip-8 is often chosen as it is a very simple system with a limited instruction set and is recommended as a first project for developers interested in emulation. Note that Chip-8 systems are "interpreted" rather than "emulated" as Chip-8 only exists as a VM, not a physical system.

CHIP-8 is an interpreted programming language, developed by Joseph Weisbecker. It was initially used on the COSMAC VIP and Telmac 1800 8-bit microcomputers in the mid-1970s. CHIP-8 programs are run on a CHIP-8 virtual machine. It was made to allow video games to be more easily programmed for said computers. Wikipedia

Technical Detail

Overview and information

This interpreter is built using vanilla Javascript to ES6 standards.

Files

LICENSE - this software is distributed under GNU V3 license. If you use it, fork it, host it or whatever, attribution is not required, but it would be neato if you let me know. I'd like to know where it gets used.

README.md - the readme file contains all documentation for the Chip-8 interpreter.

notes.md - an unstructured notes file containing information and references I've written for my own use when compiling the interpreter. Contains general information on Bitwise operations, CPU notes, general interpreter information, so on and so forth. May or may not be useful. I'll pad this out to be more comprehensive later.

index.html - web page for the interpreter. Contains skeleton HTML structure necessary for the interpreter to run.

css/styles.css - contains styling for the index.html file in order to display interpreter output.

js/main.js - Main class for the interpreter. Includes methods for reading .ch8 files and booting the disassembler and interpreter.

js/interpreter.js - Interpreter class for the interpreter. This is the main class for the interpreter and contains the Chip-8 CPU, RAM, etc.

js/display.js - Display class for the interpreter. This displays graphical output from the interpreter as well as handling display XOR and sprite collision operations.

js/disassembler.js - Disassembler class for the interpreter. This is used for debugging and breaks a .ch8 file down into bytes and lists corresponding Opcodes of each 2 byte instruction in the index.html file.

Resources

In putting this together I made extensive use of the following resources:

Roadmap

  • Build a website for the interpreter. Include full Chip-8 documentation and a proper UI.
  • Look at feasability of expanding this out to handle Super Chip-8 functionality including colour screen, expanded memory and so on.
  • Look at building a version of this in Python to run on the Raspberry Pi.
  • Build a mini Chip-8 handheld with the RPi.

chip-8's People

Watchers

James Cloos avatar James Filby avatar

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.