diff --git a/img/webapp-ipad.png b/img/webapp-ipad.png new file mode 100644 index 0000000..f902e61 Binary files /dev/null and b/img/webapp-ipad.png differ diff --git a/img/webapp-iphone.png b/img/webapp-iphone.png new file mode 100644 index 0000000..fa8700b Binary files /dev/null and b/img/webapp-iphone.png differ diff --git a/js/cpu6502.js b/js/cpu6502.js index 42eab94..3da8203 100644 --- a/js/cpu6502.js +++ b/js/cpu6502.js @@ -1248,27 +1248,33 @@ function CPU6502(options) return result; }, - dumpPage: function(page) { - if (page === undefined) { - page = pc >> 8; + dumpPage: function(start, end) { + var result = ""; + if (start === undefined) { + start = pc >> 8; } - var b, result = "", idx, jdx; - for (idx = 0; idx < 16; idx++) { - result += toHex(page) + toHex(idx << 4) + ": "; - for (jdx = 0; jdx < 16; jdx++) { - b = readByte(page * 256 + idx * 16 + jdx, true); - result += toHex(b) + " "; - } - result += " "; - for (jdx = 0; jdx < 16; jdx++) { - b = readByte(page * 256 + idx * 16 + jdx, true) & 0x7f; - if (b >= 0x20 && b < 0x7f) { - result += String.fromCharCode(b); - } else { - result += "."; + if (end === undefined) { + end = start; + } + for (var page = start; page <= end; page++) { + var b, idx, jdx; + for (idx = 0; idx < 16; idx++) { + result += toHex(page) + toHex(idx << 4) + ": "; + for (jdx = 0; jdx < 16; jdx++) { + b = readByte(page * 256 + idx * 16 + jdx, true); + result += toHex(b) + " "; } + result += " "; + for (jdx = 0; jdx < 16; jdx++) { + b = readByte(page * 256 + idx * 16 + jdx, true) & 0x7f; + if (b >= 0x20 && b < 0x7f) { + result += String.fromCharCode(b); + } else { + result += "."; + } + } + result += "\n"; } - result += "\n"; } return result; },