Esempio n. 1
0
 /**
  * reset Register, Stack, etc if newProg==true, old Code&Hashmaps deleted
  *
  * @param newProg boolean true if new Prog is loaded
  */
 public void reset(boolean newProg) {
   if (newProg == true) {
     gui.getListModel().clear();
     decoder.clearHashMaps();
   }
   setPC(0);
   curInstruction = 0;
   interna.setRegW(0);
   interna.initRegister();
   interna.initStack();
   updateGui();
 }
Esempio n. 2
0
 /** Highlight the line in Source Code which is executed */
 public void updateSelectedLine() {
   int index = decoder.getLineNrToAddress(getPC());
   gui.getCodeList().setSelectedIndex(index);
   gui.getCodeList().ensureIndexIsVisible(gui.getCodeList().getSelectedIndex());
 }