From b1e1e75555b9769cc51490d303b35e296ca0a372 Mon Sep 17 00:00:00 2001
From: Seth Morabito <web@loomcom.com>
Date: Sun, 27 Jul 2014 11:33:08 -0700
Subject: [PATCH] Reset WIP

---
 src/main/java/com/loomcom/symon/Simulator.java | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/loomcom/symon/Simulator.java b/src/main/java/com/loomcom/symon/Simulator.java
index 161c9d4..aa40c8b 100644
--- a/src/main/java/com/loomcom/symon/Simulator.java
+++ b/src/main/java/com/loomcom/symon/Simulator.java
@@ -209,7 +209,7 @@ public class Simulator {
 
         resetButton.addActionListener(new ActionListener() {
             public void actionPerformed(ActionEvent actionEvent) {
-                handleReset();
+                handleReset(false);
             }
         });
 
@@ -235,7 +235,7 @@ public class Simulator {
         mainWindow.setVisible(true);
 
         console.requestFocus();
-        handleReset();
+        handleReset(false);
     }
     
     public MAIN_CMD waitForCommand() {
@@ -268,7 +268,7 @@ public class Simulator {
     /*
      * Perform a reset.
      */
-    private void handleReset() {
+    private void handleReset(boolean isColdReset) {
         if (runLoop != null && runLoop.isRunning()) {
             runLoop.requestStop();
             runLoop.interrupt();
@@ -283,6 +283,8 @@ public class Simulator {
             console.reset();
             // Reset the trace log.
             traceLog.reset();
+            // If we're doing a cold reset, clear the memory.
+            // TODO: Clear memory
             // Update status.
             SwingUtilities.invokeLater(new Runnable() {
                 public void run() {