public MainWindow()
        {
            InitializeComponent();

            _cpu = new B33Cpu.B33Cpu();
            _cpu.LoadProgram(@"C:\Users\Alan\Documents\TicTacToeBare.B33");
            _cpu.Hardware.Add(B33MainScreen);
            _cpu.Hardware.Add(new B33Cpu.Hardware.B33Keyboard(this));
            _cpu.Hardware.Add(new B33Cpu.Hardware.B33Sound());
        }
Esempio n. 2
0
        private static void CreateTest(string name, byte[] program)
        {
            var cpu = new B33Cpu.B33Cpu {
                Name = name
            };

            cpu.Hardware.Add(new B33Cpu.Hardware.B33Sound());

            cpu.B33Stopped += B33Stopped;
            cpu.LoadProgram(program, 0x1000, 0x1000);
            cpu.Start();
            _testCounter++;
        }