Skip to content

dfireBird/chip-octo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

My take on chip-8 implemenation in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages