diff --git a/testprogram.js b/testprogram.js index 0174fbe..846fa1f 100644 --- a/testprogram.js +++ b/testprogram.js @@ -12,7 +12,7 @@ testprogramAddress=0x0000; var consoleboxStream=""; // demonstrate write hook -writeTriggers[0x000c]="consoleboxStream += String.fromCharCode(d);"+ +writeTriggers[0x000F]="consoleboxStream += String.fromCharCode(d);"+ "consolebox.innerHTML = consoleboxStream;"; // demonstrate read hook (not used by this test program) @@ -25,11 +25,11 @@ testprogram = [ 0x4c, 0x02, 0x00, // JMP $0002 0x00, 0x00, 0x00, 0x00, - 0x40, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x40, 0xe8, // INX 0x88, // DEY - 0xe6, 0x0c, // INC $0C + 0xe6, 0x0F, // INC $0F 0x38, // SEC 0x69, 0x02, // ADC #$02 0x60 // RTS