use std::{fs::File, io::Read};

fn main() {
    env_logger::init();

    let rom: Vec<u8> = File::open("testroms/cpu_instrs.gb").expect("Cannot open file.").bytes().filter_map(|x| x.ok()).collect();
    let mut x = gbcore::GbCore::new();
    x.load(&rom);
    x.test();

    

    println!("Hello, world!");
}