2012-04-12 22:42:55 +00:00
|
|
|
import std.stdio;
|
|
|
|
|
2012-04-14 15:26:27 +00:00
|
|
|
import test.d6502.base, test.d6502.cpu;
|
2012-04-03 00:58:51 +00:00
|
|
|
|
|
|
|
|
2012-04-12 22:42:55 +00:00
|
|
|
void main(string[] args)
|
2012-04-03 00:58:51 +00:00
|
|
|
{
|
2012-04-12 22:42:55 +00:00
|
|
|
auto opts = CheckOptions(args);
|
2012-04-03 00:58:51 +00:00
|
|
|
auto report = report_debug();
|
|
|
|
|
2012-04-13 11:03:22 +00:00
|
|
|
alias CPU!("6502") T1;
|
2012-04-12 22:42:55 +00:00
|
|
|
writeln("Testing functionality, 6502");
|
|
|
|
foreach (opcode; opts.codes6502)
|
2012-04-03 00:58:51 +00:00
|
|
|
test_one_opcode!T1(cast(ubyte)opcode, report);
|
|
|
|
|
2012-04-13 11:03:22 +00:00
|
|
|
alias CPU!("65C02") T2;
|
2012-04-12 22:42:55 +00:00
|
|
|
writeln("Testing functionality, 65C02");
|
|
|
|
foreach (opcode; opts.codes65C02)
|
2012-04-03 00:58:51 +00:00
|
|
|
test_one_opcode!T2(cast(ubyte)opcode, report);
|
|
|
|
}
|