Exemplo n.º 1
0
Arquivo: ICM.cs Projeto: Blecki/IN8
        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);
        }
Exemplo n.º 2
0
        public VisualHardwareGrid(IN8.Emulator CPU)
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            this.IsMouseVisible = true;

            this.CPU = CPU;

            graphics.PreferredBackBufferHeight = 600;
            graphics.PreferredBackBufferWidth = 800;
        }
Exemplo n.º 3
0
 public void Connect(IN8.Emulator CPU, params byte[] ports)
 {
     if (ports.Length != 1) throw new InvalidOperationException("7-segment display takes exactly one port");
     CPU.AttachHardware(this, ports);
 }