summaryrefslogtreecommitdiffstats
path: root/cpu.js
diff options
context:
space:
mode:
Diffstat (limited to 'cpu.js')
-rw-r--r--cpu.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpu.js b/cpu.js
index fcee562..87aadc8 100644
--- a/cpu.js
+++ b/cpu.js
@@ -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;
}