public Memory(GameBoy gameBoy, CartInterface cart) { _gb = gameBoy; _loadedCart = cart; _biosRom = File.ReadAllBytes("bios.bin"); }
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); } }