program.addErrorListener(this);
program.addProgramListener(this);
MemorySegment[][] segments = new MemorySegment[Definitions.RAM_SIZE][];
RAM ram = new RAM(gui.getRAM(), segments, gui.getScreen());
ram.addErrorListener(this);
ram.reset();
// sets ram labels
LabeledPointedMemoryGUI ramGUI = gui.getRAM();
ramGUI.setLabel(Definitions.SP_ADDRESS, Definitions.SP_NAME);
ramGUI.setLabel(Definitions.LOCAL_POINTER_ADDRESS, Definitions.LOCAL_POINTER_NAME);