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(); }
public void BitOps10() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/10-bit ops.gb"); }
public void OpAHLm11() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/11-op a,(hl).gb"); }
public void MiscInst08() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/08-misc instrs.gb"); }
public void OpRR09() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/09-op r,r.gb"); }
public void LdRR06() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/06-ld r,r.gb"); }
public void JrJpCallRetRst07() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/07-jr,jp,call,ret,rst.gb"); }
public void OpRp05() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/05-op rp.gb"); }
public void OpRImm04() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/04-op r,imm.gb"); }
public void OpSpHl03() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/03-op sp,hl.gb"); }
public void Interrupts02() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/02-interrupts.gb"); }
public void Special01() { Gameboy.LoadRom("./Roms/cpu_instrs/individual/01-special.gb"); Gameboy.cpu.Run(); }