Beispiel #1
0
  // Initializes the memory segment
  private void init(Memory mainMemory, MemorySegmentGUI gui) {
    m_mainMemory = mainMemory;
    m_gui = gui;

    if (hasGUI) {
      gui.addListener(this);
      gui.addErrorListener(this);
    }
  }