Giter VIP home page Giter VIP logo

chip8's Introduction

chip8 - CHIP-8 Emulator

Screenshot

This is a CHIP-8 emulator written in Rust. The goal of this project is to write a composable CHIP-8 system without a hard dependency to the display and sound backends.

This is achieved through the use of a IO port abstraction where the main system is connected to external virtual components (keyboard, screen, beeper).

Architecture Diagram

As of now, the keyboard and screen are implemented using the druid GUI library.

The beeper component uses the cpal library.

Usage

USAGE:
    chip8.exe [OPTIONS] <FILENAME>

ARGS:
    <FILENAME>    Set input filename of the image to run

FLAGS:
    -h, --help       Print help information
    -V, --version    Print version information

OPTIONS:
    -b, --bg-color <BG_COLOR>
            Set background color for the gui (hex HTML-like RGB color value)
    
    -c, --cpu-frequency <CPU_FREQUENCY>
            Set CPU frequency (> 0 and < 5000 Hz)

    -f, --fg-color <FG_COLOR>
            Set foreground color for the gui (hex HTML-like RGB color value)

    -k, --kb-profile <KB_PROFILE>
            Set profile mapping physical to virtual keyboard (supported profiles: default, qwerty,
            azerty)

QUIRKS:
    -d, --draw-wraps-pixels       Draw operations wrap pixels around the edges of the screen
    -l, --load-store-ignores-i    Load and store instructions do not increment the I register
    -s, --shift-reads-vx          Shift operations read the VX register instead of VY

Assembler

The project also includes a basic assembler, c8asm.

Usage:

$ c8asm input_file output_file

See the included example: ex.c8asm

chip8's People

Contributors

noirotm avatar

Stargazers

Abdoulaye DIA avatar Gergo Huszty avatar Ada avatar astro avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

erenaykara

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.