/** Constructs a new RegisterWithGUI. */ public RegisterWithGUI() { if (GatesManager.getInstance().isChipsGUIEnabled()) { gui = new RegisterComponent(); gui.setName("Reg:"); gui.setLocation(180, 10); gui.reset(); gui.addListener(this); gui.addErrorListener(this); } }
// Sets the names of the registers. private void setRegistersNames() { a.setName("A"); d.setName("D"); pc.setName("PC"); }