Skip to content

vspecky/chipper8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chipper8.rs (Version Beta)

Chipper8.rs will be a CHIP-8 emulator/interpreter written in Rust. Just a small hobby project for me to learn Rust.
Thinking of making this a pure CLI, but I might add a GUI too.
Update: Implementing a GUI is actually easier so that's what I'm gonna do. The CLI will just refer to the ability to use the command line to load games.

Update 2: It works quite well now. Only thing that remains is adding sound support.

Note: The disassembler does not return actual syntactically correct code. It just converts the program bytes into a textual format with helpful comments at each line.

What is CHIP-8?

CHIP-8 is a simple interpreted programming language that was developed by Joseph Weisbecker back in the 1970s for the COSMAC VIP and Telmac 1800 Microcomputers. It was used to create quite a few games too. More information can be found on the Wikipedia Article.

How do I use this interpreter?

  • Get the public domain games from here.
  • Compile the code.
  • Run the game from the terminal as so
./executable <path_to_rom_file>

What if I wanna do my own implementation?

In that case, you should check out the following two websites :-

Mattmik's website is great for understanding the CHIP-8 language and Cowgod's website is a very concise and helpful reference.

Credits

Thanks to Cowgod for the amazing technical reference. All the opcode comments in the code have been directly picked up from their reference.

About

An Emulator/Interpreter for CHIP-8 written in Rust.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages