emu: dump register file on unimplemented opcode

This commit is contained in:
2021-03-06 02:10:13 -08:00
parent fa49d19ae0
commit be7e926842

View File

@@ -138,7 +138,7 @@ macro_rules! step {
let opcode = $cpu.next_ip($bus); let opcode = $cpu.next_ip($bus);
match(opcode) { match(opcode) {
$( $code => step!(@code (), $cpu, $bus, $name, $cycles, ($($args $(= $argrhs)?)*)) ),*, $( $code => step!(@code (), $cpu, $bus, $name, $cycles, ($($args $(= $argrhs)?)*)) ),*,
_ => unimplemented!("opcode: {:02X}", opcode) _ => unimplemented!("opcode: {:02X}\ncpu: {:#X?}", opcode, $cpu)
} }
} }
} }