Example #1
0
        static void Main(string[] args)
        {
            var gameBoy = new Gameboy();

            using (var fileStream = File.Open(@"../../../../assets/ld.gb", FileMode.Open))
            {
                byte[] rom = FileUtils.ReadFully(fileStream, 0);
                gameBoy.LoadRom(rom);
            }

            Console.Out.WriteLine($"Rom loaded. Game title: {gameBoy.GameLoaded}");
            Console.ReadKey();

            gameBoy.Start();
        }
Example #2
0
 public void BitOps10()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/10-bit ops.gb");
 }
Example #3
0
 public void OpAHLm11()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/11-op a,(hl).gb");
 }
Example #4
0
 public void MiscInst08()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/08-misc instrs.gb");
 }
Example #5
0
 public void OpRR09()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/09-op r,r.gb");
 }
Example #6
0
 public void LdRR06()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/06-ld r,r.gb");
 }
Example #7
0
 public void JrJpCallRetRst07()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/07-jr,jp,call,ret,rst.gb");
 }
Example #8
0
 public void OpRp05()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/05-op rp.gb");
 }
Example #9
0
 public void OpRImm04()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/04-op r,imm.gb");
 }
Example #10
0
 public void OpSpHl03()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/03-op sp,hl.gb");
 }
Example #11
0
 public void Interrupts02()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/02-interrupts.gb");
 }
Example #12
0
 public void Special01()
 {
     Gameboy.LoadRom("./Roms/cpu_instrs/individual/01-special.gb");
     Gameboy.cpu.Run();
 }