Fix up a line to do a better job of handling debug output
This commit is contained in:
parent
f4ab7508f6
commit
935b452e11
|
|
@ -48,8 +48,7 @@ const Instructions = {
|
|||
},
|
||||
|
||||
load_addr: (addr) => {
|
||||
CPU.currentInstruction.mnemonic = 'LDA addr';
|
||||
console.log('mem at addr: ', CPU.memory[addr]);
|
||||
CPU.currentInstruction.mnemonic = `LDA addr \n mem at addr: ${num2hex(CPU.memory[addr])}`;
|
||||
CPU.Acc = CPU.memory[addr];
|
||||
CPU.IP = CPU.IP += 2;
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue