Log CPU state in hex

This commit is contained in:
n loewen 2023-08-02 14:07:30 +01:00
parent 5f3d4ea22f
commit f4791d1862
1 changed files with 1 additions and 1 deletions

View File

@ -198,6 +198,6 @@ exports.runProgram = async (code, debug = false) => {
function logCPUState() { function logCPUState() {
console.log(); console.log();
console.log( `IP: ${CPU.IP} Acc: ${CPU.Acc} CF: ${CPU.CF}  ${CPU.running ? "running" : "halted" }` ); console.log( `IP: $${num2hex(CPU.IP)} Acc: $${num2hex(CPU.Acc)} CF: ${CPU.CF}  ${CPU.running ? "running" : "halted" }` );
console.log(); console.log();
}; };