Skip to content

Commit

Permalink
Time to panic again
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Dec 7, 2023
1 parent 0c7df20 commit 7c9d0bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,7 @@ impl CPU {
0xFB => { self.ei = true; 1 },
0xFE => { let b = self.read_byte();
self.alu_cp(b); 2 },
// Should be a panic!, keep it as a println! for now
code => { println!("Instruction {:#04x} is unknown!", code); 0 },
code => panic!("Instruction {:#04x} is unknown!", code),
}
}

Expand Down

0 comments on commit 7c9d0bd

Please sign in to comment.