Skip to content

okacat/chip-8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHIP-8

This is a CHIP-8 emulator written in Rust. It's not meant as a polished emulator and is very barebones at the moment. You can load a ROM to play, and .. that's it :) No beeping or booping so far, only graphics.

It was meant for me to dip my toes in emulation and Rust.

chip-8 screenshot

Building

You'll need to have SDL2 installed on your system. Here's a guide on how: https://github.com/Rust-SDL2/rust-sdl2

After you've installed SDL2, run:

cargo run -- <path-to-rom>

Here's a good start on finding some ROMs: https://github.com/kripod/chip8-roms

Usage

A ROM file needs to be provided as the only argument, here's the usage printout:

CHIP-8

welcome to CHIP-8 ツ

No ROM path provided.
Usage: chip8 <path-to-rom>

Keymapping

CHIP-8 has a 16x16 keypad layout. It's mapped onto a keyboard like so:

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

Resources

These two pages were a huge help, basically all you need to build your own!

About

A toy CHIP-8 emulator written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages