Fix ADD carry

This commit is contained in:
2021-10-19 13:59:53 -05:00
parent 6b1d50ba76
commit 8b287c17c7
3 changed files with 17 additions and 2 deletions
+2 -1
View File
@@ -43,12 +43,13 @@ pub struct Bus {
impl Bus {
pub fn new() -> Self {
// let game_rom = match ROM::load_file("roms/cpu_instrs_individual/01-special.gb".to_string()) {
let game_rom = match ROM::load_file("roms/cpu_instrs_individual/03-op sp,hl.gb".to_string()) {
Ok(rom) => rom,
_ => ROM::from_bytes(&[0; 0xFFFF])
};
Self {
data: [0xFF; 0x10000],
data: [0x00; 0x10000],
game_rom,
}
}