diff --git a/src/cpu.rs b/src/cpu.rs index de5346c72e043712916b71c757dcd121af03f254..9d75c9aeb8c78437acbd8ba530bafe0fff52003a 100644 --- a/src/cpu.rs +++ b/src/cpu.rs @@ -96,7 +96,8 @@ impl Cpu { let (instruction_fn, instruction_time, instruction_str) = instruction; - if !self.mmu.boot_active() || *instruction_str == "! UNIMP !" { + // if !self.mmu.boot_active() { + if *instruction_str == "! UNIMP !" { println!( "{}\t(0x{:02x})\t${:04x} {}", instruction_str, opcode, pc, is_prefix diff --git a/src/inst.rs b/src/inst.rs index f068575ec2d42efa8967ebe0609caaac11560eaf..e3a4eda15b75e9f2fc44a3f08ed6f3e50c11c9e2 100644 --- a/src/inst.rs +++ b/src/inst.rs @@ -852,7 +852,7 @@ fn ld_sp_u16(cpu: &mut Cpu) { } fn jr_nc_i8(cpu: &mut Cpu) { - let byte = cpu.read_u8(); + let byte = cpu.read_u8() as i8; if cpu.get_carry() { return; @@ -879,7 +879,7 @@ fn scf(cpu: &mut Cpu) { } fn jr_c_i8(cpu: &mut Cpu) { - let byte = cpu.read_u8(); + let byte = cpu.read_u8() as i8; if !cpu.get_carry() { return;