Code Monkey home page Code Monkey logo

chip8-rs's Introduction

chip8-rs

CHIP-8 implementation in Rust, compiled to wasm. Live Demo

Features

  • All CHIP-8 standard features

  • Includes 90 ROMs from CHIP-8 pack

  • Emulates afterglow in old phosphor screen to reduce flickering (can be turned off)

  • Handles 3 implementation quirks that can be enabled:

    1. Shift quirk: opcodes 8xy6 & 8xyE shift Vy instead of Vx
    2. Load/Store register quirk: opcodes Fx55 & Fx65 won't increase I register by x + 1
    3. Sprite wrapping quirk: when parts of sprite are drawn outside of display, wrap it instead of clipping it
  • Lightweight page (transfer size < 30kb, total size < 70kb)

How to Build

Install all the tools needed:

Clone this repo and install Node packages

git clone https://github.com/faizilham/chip8-rs.git
cd chip8-rs
yarn install

Build project

yarn build

Build result will be available in dist/ directory

Keymapping

CHIP-8       PC Keyboard
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

Included ROMs

All included ROMs have descriptions and default quirk configuration data, taken from mir3z's chip8 project with some modification

chip8-rs's People

Contributors

faizilham 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.