GithubHelp home page GithubHelp logo

d-dorazio / chip8 Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 983 KB

A rust chip8 interpreter

Home Page: https://danieledapo.github.io/chip8

Rust 81.86% HTML 9.61% JavaScript 4.30% CSS 4.23%
rust chip8

chip8's Introduction

Chip8 interpreter in Rust

$ cargo run --release -- --help
$ cargo run --release games/PONG

Virtual Key mappings

The original CHIP-8 had 16 virtual keys had the layout on the left, which has been mapped (by default) to the keyboard layout on the right:

 1 2 3 C                                   1 2 3 4
 4 5 6 D    This is emulated with these    Q W E R
 7 8 9 E    keyboard keys -->              A S D F
 A 0 B F                                   Z X C V

To play PONG use Q and 1 to move the bar on the left up and down and 4 and R for bar on the right.

Notes

The flickering is caused by how the interpreter draws sprites onto the screen. In particular, it performs a bitwise xor between the vram and the sprite to draw. This ends up in flickering when drawing a sprite over an existing sprite (1 ^ 1 = 0).

Resources

chip8's People

Contributors

danieledapo avatar dependabot[bot] avatar

Watchers

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