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.
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
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.
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:
Chip-Octo is not published anywhere. But you can install directly from source using Cargo.
$ cargo install --git github.com/dfireBird/chip-octo
If you wanna build from source yourself:
- Clone the source
$ git clone https://github.com/dfireBird/chip-octo
- Use cargo to build with release flag
$ cargo build --flag
- You can install it using cargo, which will copy the binary to
~/.cargo/bin/
(assuming your prefix is~/.cargo
)
$ cargo install
- Configuration system.
- Add Documentation regarding config and command line parameters
- Build a GUI to manage settings and ROM files.
- Public Domain CHIP-8 Games
- Guide to making a CHIP-8 emulator
- Awesome CHIP-8
- Instruction Set Reference
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.
Chip-Octo is primarily distributed under the terms of MIT License. See LICENSE for details.