fix: replace MathTarget::HL and ::SP with already-existing enums

This commit is contained in:
2021-01-19 02:05:04 -06:00
parent b70c398e14
commit 842e670807
3 changed files with 12 additions and 15 deletions

View File

@@ -74,12 +74,13 @@ impl Cpu {
pub fn step(&mut self) -> Cycles {
let opcode = self.fetch();
let instr = self.decode(opcode);
let cycles = self.execute(instr);
// println!(
// "Addr: {:#06X} | Opcode: {:#04X} | Instr: {:X?}",
// self.reg.pc, opcode, instr
// );
println!(
"Addr: {:#06X} | Opcode: {:#04X} | Instr: {:X?}",
self.reg.pc, opcode, instr
);
let cycles = self.execute(instr);
self.bus.step(cycles);