cpu - Change debug printout formatting
This commit is contained in:
parent
d0b620f1ad
commit
41632b0a0f
1
cpu.js
1
cpu.js
|
|
@ -415,6 +415,7 @@ function logCPUState(debugInfo, debug = false, prettyPrintDisplay = false) {
|
|||
}
|
||||
console.log();
|
||||
console.log(`Line ${debugInfo[CPU.previousIP].lineNumber}: ${debugInfo[CPU.previousIP].source}`);
|
||||
console.log();
|
||||
console.log('Mnemonic:', CPU.currentInstruction.mnemonic);
|
||||
console.log(`Machine: $${num2hex(CPU.currentInstruction.opcode)} $${num2hex(CPU.currentInstruction.operand)}`);
|
||||
console.log();
|
||||
|
|
|
|||
Loading…
Reference in New Issue