Skip to content

CosmicBagel/chip8_rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chip8_rust

A chip 8 emulator written in rust

Thanks to

Input

    keyboard mapping:
    Keypad      Keyboard
    1 2 3 C     1 2 3 4
    4 5 6 D ->  Q W E R
    7 8 9 E     A S D F
    A 0 B F     Z X C V

Eg. Pong uses 1 and 4 to move the paddels, on the keyboard this is 1 and Q

Config

Requires a chip8_rust_config.toml file, with a rom path to load eg:

rom = roms\Pong.ch8

Also configuratble: volume = 0.3 instructions_per_cycle = 10

The release zip includes this, but if you delete it, its simple enough to recreate by hand.

Building

Just clone and cargo run

Should work on windows, linux, and macos

See https://github.com/kripod/chip8-roms for roms to try

¯\_(ツ)_/¯