Apparently you're not supposed to give groupEnd() an argument...

This commit is contained in:
n loewen 2023-08-03 16:26:45 +01:00
parent 4f82cd9c9e
commit e4cf2bb221
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@ if (mode === "debug") {
machineCode = assembler.assemble(inputFile_str, true);
console.group("Machine code output");
logMemory(machineCode);
console.groupEnd('Machine code output');
console.groupEnd();
} else {
machineCode = assembler.assemble(inputFile_str);
console.log(machineCode); // TODO print just the numbers

View File

@ -204,5 +204,5 @@ function hex2num(hex) { return parseInt(hex, 16) };
// Debug helpers
const dbg = (lvl, s) => { if (DEBUG && (lvl >= DEBUG_LEVEL)) console.log(s) };
const dbgGroup = (lvl, s) => { if (DEBUG && (lvl >= DEBUG_LEVEL)) console.group(s) };
const dbgGroupEnd = (lvl, s) => { if (DEBUG && (lvl >= DEBUG_LEVEL)) console.groupEnd(s) };
const dbgGroupEnd = (lvl, s) => { if (DEBUG && (lvl >= DEBUG_LEVEL)) console.groupEnd() };
const dbgExec = (lvl, func) => { if (DEBUG && (lvl >= DEBUG_LEVEL)) func(); }

View File

@ -217,5 +217,5 @@ async function logCPUState(debug = false) {
console.log();
// Pause to show animated display:
if (!debug) await new Promise(resolve => setTimeout(resolve, 75));
console.groupEnd('Step');
console.groupEnd();
};