Skip to content
Snippets Groups Projects
main.rs 395 B
Newer Older
  • Learn to ignore specific revisions
  • use boytacean::gb::GameBoy;
    
    fn main() {
        let mut game_boy = GameBoy::new();
    
        game_boy.load_boot_default();
    
    
    João Magalhães's avatar
    João Magalhães committed
        for i in 0..37000 {
    
            // runs the Game Boy clock, this operations should
            // include the advance of both the CPU and the PPU
            game_boy.clock();
    
    João Magalhães's avatar
    João Magalhães committed
            if game_boy.cpu().pc() >= 0x6032 {
    
                println!("{}", i);
    
                break;
            }