diff options
-rw-r--r-- | cpu.js | 4 | ||||
-rw-r--r-- | globals.js | 2 | ||||
-rw-r--r-- | nes.js | 3 |
3 files changed, 5 insertions, 4 deletions
@@ -1061,8 +1061,8 @@ function CPU(nes) { // * ??? * // ******* - this.nes.isRunning = false; - alert("Game crashed, invalid opcode at address $"+opaddr.toString(16)); + this.nes.stop(); + this.nes.crashMessage = "Game crashed, invalid opcode at address $"+opaddr.toString(16); break; } @@ -32,7 +32,7 @@ var Globals = { filterBrightenDepth: 3, filterDarkenDepth : 3, - nes: null, + nes: null /*public static void println(String s){ nes.getGui().println(s); }*/ @@ -13,6 +13,7 @@ function NES() { this.romFile = null; this.isRunning = false; + this.crashMessage = null; this.palTable.loadNTSCPalette(); //this.palTable.loadDefaultPalette(); @@ -89,7 +90,7 @@ function NES() { } this.stop = function() { - $("#status").text("Stopped."); + //$("#status").text("Stopped."); clearInterval(this.frameInterval) this.isRunning = false; } |