emu: dump register file on unimplemented opcode
This commit is contained in:
@@ -138,7 +138,7 @@ macro_rules! step {
|
||||
let opcode = $cpu.next_ip($bus);
|
||||
match(opcode) {
|
||||
$( $code => step!(@code (), $cpu, $bus, $name, $cycles, ($($args $(= $argrhs)?)*)) ),*,
|
||||
_ => unimplemented!("opcode: {:02X}", opcode)
|
||||
_ => unimplemented!("opcode: {:02X}\ncpu: {:#X?}", opcode, $cpu)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user