Apparently you're not supposed to give groupEnd() an argument...
This commit is contained in:
parent
4f82cd9c9e
commit
e4cf2bb221
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(); }
|
||||
|
|
@ -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();
|
||||
};
|
||||
Loading…
Reference in New Issue