Git Product home page Git Product logo

chiprust8's Introduction

ChipRust8

What is it?

CHIP-8 is an interpreted bytecode, originally for the COSMAC VIP. It's also a fan favorite for learning to write VMs and interpreters. This is yet another CHIP-8 interpreter, written in Rust.

Why is it?

I had a week off work between Christmas and New Year and wanted to see how far I could get. I also wanted to do some more substantive Rust programming, instead of just doing some puzzles.

Screenshot of running the chip8-test-rom on ChipRust8

Technical

Running It:

  • git clone
  • cargo run -- -r <chip8rom.ch8>

Run with -h for help.

Goals

  • Extendability. There are a number of variants of CHIP-8, and while I don't have implementations for each variant, the system is designed in such a way that e.g. implementing a larger screen should be trivial.
  • Modularity. I have chosen to use egui (via eframe) for this initial implentation. However, any other graphics framework could be used in its place, by writing a harness that can poll my GraphicsAdapter.
  • Code Quality. I wanted to write something with a strong design, implemented well.
  • Testing. Enough said.

Status

Successes

To-Dos

  • Better output formatting, instead of Unicode filled-boxes in a monospaced font
  • Fix I/O. Currently causes stuttering on some games
  • More testing.
    • Finish testing each instruction
    • Add testing for decoding
  • Add docs.

chiprust8's People

Contributors

marcusbarbu avatar

Watchers

James Cloos 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.