/** Constructs a new CPUEmulatorComponent. */ public CPUEmulatorComponent() { screen = new ScreenComponent(); keyboard = new KeyboardComponent(); ram = new PointedMemoryComponent(); ram.setName("RAM"); rom = new ROMComponent(); rom.setName("ROM"); alu = new ALUComponent(); a = new RegisterComponent(); d = new RegisterComponent(); pc = new RegisterComponent(); setRegistersNames(); bus = new BusComponent(); jbInit(); // Sets the top level location of RAM and ROM. ram.setTopLevelLocation(this); rom.setTopLevelLocation(this); }