From c7ac03edd832a8945bda28dafb16039be48d3821 Mon Sep 17 00:00:00 2001 From: BigEd Date: Mon, 22 Nov 2010 15:19:38 +0000 Subject: [PATCH] move the I/O port (incremented value) to the top right for better visibility --- testprogram.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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