public void Connect(IN8.Emulator CPU, params byte[] ports) { if (ports.Length != 2) throw new InvalidOperationException("ICM-CD2 display must be connected to 2 ports"); this.CPU = CPU; dataPort = ports[0]; controlPort = ports[1]; CPU.AttachHardware(this, ports); }
public VisualHardwareGrid(IN8.Emulator CPU) { graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; this.IsMouseVisible = true; this.CPU = CPU; graphics.PreferredBackBufferHeight = 600; graphics.PreferredBackBufferWidth = 800; }