2019-07-24 23:48:19 +01:00
|
|
|
|
// <copyright file="Program.cs" company="Adrian Conlon">
|
|
|
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
|
|
|
// </copyright>
|
2019-07-21 18:32:42 +01:00
|
|
|
|
|
|
|
|
|
namespace LR35902.BlarggTest
|
|
|
|
|
{
|
2019-07-24 23:48:19 +01:00
|
|
|
|
public static class Program
|
2019-07-21 18:32:42 +01:00
|
|
|
|
{
|
2019-07-24 23:48:19 +01:00
|
|
|
|
public static void Main(string[] args)
|
2019-07-21 18:32:42 +01:00
|
|
|
|
{
|
2019-07-24 23:48:19 +01:00
|
|
|
|
var configuration = new Configuration();
|
|
|
|
|
|
|
|
|
|
#if DEBUG
|
2019-07-28 11:50:25 +01:00
|
|
|
|
//configuration.DebugMode = true;
|
2019-07-24 23:48:19 +01:00
|
|
|
|
#endif
|
2019-07-28 11:50:25 +01:00
|
|
|
|
//configuration.DebugMode = true;
|
2019-07-24 23:48:19 +01:00
|
|
|
|
|
|
|
|
|
var computer = new Computer(configuration);
|
|
|
|
|
|
|
|
|
|
computer.Plug("blargg/cpu_instrs.gb"); // Passed
|
2019-07-28 11:50:25 +01:00
|
|
|
|
////computer.Plug("blargg/01-special.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/02-interrupts.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/03-op sp,hl.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/04-op r,imm.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/05-op rp.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/06-ld r,r.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/07-jr,jp,call,ret,rst.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/08-misc instrs.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/09-op r,r.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/10-bit ops.gb"); // Passed
|
|
|
|
|
////computer.Plug("blargg/11-op a,(hl).gb"); // Passed
|
2019-07-24 23:48:19 +01:00
|
|
|
|
|
2019-07-28 11:50:25 +01:00
|
|
|
|
////computer.Plug("blargg/instr_timing.gb"); // Failed #255
|
|
|
|
|
////computer.Plug("blargg/interrupt_time.gb"); // Failed
|
2019-07-24 23:48:19 +01:00
|
|
|
|
|
|
|
|
|
computer.RaisePOWER();
|
|
|
|
|
computer.Run();
|
2019-07-21 18:32:42 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|