Giter Site home page Giter Site logo

chip-octo's Introduction

Chip-Octo

Chip-Octo is interpreter of the classic CHIP-8 programming language made in Rust.

The interpreter's implementation targets the implementation of the CHIP-8 made for the COSMAC VIP machine. It's may not have the quirks expected from later implementations.

The implementation is tested using Timendus's chip-8 test suite. It passed all of the tests expect the quirk test.

Usage

To start the installed chip-octo with ROM file path as the only argument:

$ chip-octo <rom_file_path>

To see all options available to the user:

$ chip-octo --help

Configuration

Chip-Octo looks for configuration file in the default configuration directory as given by dirs crate. See here, for the configuration directory in various platforms.

If not found there, it looks for configuration file in the same directory, the executable was invoked in. Even then, if it's not found it's uses the default configuration.

CLI Arguments takes precedence over configuration in the config file. Please be mindful when using both.

See the example configuration file to see the available config options.

Keybindings

The implementation follows the original COSMAC VIP keypad. By default, the keys in the table below respectively maps the keypad of the COSMAC VIP. The keymap can be changed using the config file, see the example config file for example.

Keys:

1 2 3 4
Q W E R
A S D F
Z X C v

Image Reference of keypad:

COSMAC VIP keypad

Installation

Chip-Octo is not published anywhere. But you can install directly from source using Cargo.

$ cargo install --git github.com/dfireBird/chip-octo

Building

If you wanna build from source yourself:

  1. Clone the source
$ git clone https://github.com/dfireBird/chip-octo
  1. Use cargo to build with release flag
$ cargo build --flag
  1. You can install it using cargo, which will copy the binary to ~/.cargo/bin/ (assuming your prefix is ~/.cargo)
$ cargo install

TODO

  • Configuration system.
  • Add Documentation regarding config and command line parameters
  • Build a GUI to manage settings and ROM files.

Credits and References

Contributing

Create an issue if you have any suggestions or you find any issues with implementation. If you want to make the change yourself, please create an issue before creating the PR itself.

License

Chip-Octo is primarily distributed under the terms of MIT License. See LICENSE for details.

chip-octo's People

Contributors

dfirebird avatar

Watchers

 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.