chore: replace select unreachable! macros with todo! and unreachable!

This commit is contained in:
2021-03-22 21:52:28 -05:00
parent 9301a36682
commit 2813b762dd
3 changed files with 7 additions and 10 deletions

View File

@@ -541,7 +541,7 @@ impl Instruction {
cpu.set_register(Register::A, rot_a);
Cycles::new(4)
}
Instruction::DAA => unimplemented!(),
Instruction::DAA => todo!("Implement DAA Instruction"),
Instruction::CPL => {
// Compliment A register (inverse)
let mut flags: Flags = *cpu.flags();
@@ -576,7 +576,7 @@ impl Instruction {
cpu.set_flags(flags);
Cycles::new(4)
}
Instruction::HALT => unimplemented!(),
Instruction::HALT => todo!("Implement HALT instruction"),
Instruction::ADC(target) => match target {
MATHTarget::Register(reg) => {
// ADC A, r[z] | Add register r[z] plus the Carry flag to A