示例#1
0
        public Memory(GameBoy gameBoy, CartInterface cart)
        {
            _gb         = gameBoy;
            _loadedCart = cart;

            _biosRom = File.ReadAllBytes("bios.bin");
        }
示例#2
0
文件: Program.cs 项目: goaaats/BadGB
        static void Main(string[] args)
        {
            AppDomain.CurrentDomain.UnhandledException += (sender, eventArgs) => Console.Beep();

            var cart = new CartInterface(File.ReadAllBytes(args[0]));

            var gb = new GameBoy(cart);

            //Console.ReadKey();

            while (true)
            {
                gb.Update();
                Thread.Sleep(1);
            }
        }