コード例 #1
0
ファイル: ICM.cs プロジェクト: 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);
        }
コード例 #2
0
ファイル: VisualHardwareGrid.cs プロジェクト: Blecki/IN8
        public VisualHardwareGrid(IN8.Emulator CPU)
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";
            this.IsMouseVisible = true;

            this.CPU = CPU;

            graphics.PreferredBackBufferHeight = 600;
            graphics.PreferredBackBufferWidth = 800;
        }
コード例 #3
0
ファイル: SevenSegment.cs プロジェクト: Blecki/IN8
 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);
 }