diff --git a/js/debugger.ts b/js/debugger.ts index 6823782..f4d5ad8 100644 --- a/js/debugger.ts +++ b/js/debugger.ts @@ -132,7 +132,7 @@ export default class Debugger { } const { ar, xr, yr, sr, sp } = debugInfo; return [ - ' A=' + toHex(ar), + 'A=' + toHex(ar), ' X=' + toHex(xr), ' Y=' + toHex(yr), ' P=' + toHex(sr), diff --git a/test/js/debugger.spec.ts b/test/js/debugger.spec.ts index 2f2f76f..f38549e 100644 --- a/test/js/debugger.spec.ts +++ b/test/js/debugger.spec.ts @@ -52,7 +52,7 @@ describe('Debugger', () => { it('should dump registers', () => { const regs = theDebugger.dumpRegisters(); expect(regs).toEqual( - '0000- A=00 X=00 Y=00 P=20 S=FF --------' + 'A=00 X=00 Y=00 P=20 S=FF --------' ); }); });