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);
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user