Skip to content

Instantly share code, notes, and snippets.

@sean3z
Last active December 30, 2022 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sean3z/0b671e817e9de4087b363ebd8588ed06 to your computer and use it in GitHub Desktop.
Save sean3z/0b671e817e9de4087b363ebd8588ed06 to your computer and use it in GitHub Desktop.
Example main
use cpu::Cpu;
mod cpu;
mod keypad;
mod display;
fn main() {
let mut cpu = Cpu::new();
cpu.load_game("/home/sean/www/chip8-emulator-rust/roms/pong");
'main : loop {
cpu.emulate_cycle();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment