From af12704c368bcb4846244d19313a25fba51a487d Mon Sep 17 00:00:00 2001 From: n loewen Date: Tue, 15 Aug 2023 16:56:22 +0100 Subject: [PATCH] Bugfix (simulator): Use the correct flag abbreviations in debug logs --- simulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulator.js b/simulator.js index a690702..e985f8c 100644 --- a/simulator.js +++ b/simulator.js @@ -318,7 +318,7 @@ async function logCPUState(debug = false) { console.log('Mnemonic:', CPU.currentInstruction.mnemonic); console.log(`Machine: $${num2hex(CPU.currentInstruction.opcode)} $${num2hex(CPU.currentInstruction.operand)}`); console.log(); - console.log(`IP: $${num2hex(CPU.IP)} Acc: $${num2hex(CPU.Acc)} NVOC: ${num2bin_4bit(CPU.FLAGS)}  ${CPU.running ? "running" : "halted" }`); + console.log(`IP: $${num2hex(CPU.IP)} Acc: $${num2hex(CPU.Acc)} NZOC: ${num2bin_4bit(CPU.FLAGS)}  ${CPU.running ? "running" : "halted" }`); console.log(); // Pause to show animated display: if (!debug) await new Promise(resolve => setTimeout(resolve, 75));