2012-03-31 19:44:23 +00:00
|
|
|
module test.test_bus;
|
2012-03-30 19:10:49 +00:00
|
|
|
|
2012-03-31 19:44:23 +00:00
|
|
|
|
2012-04-12 22:42:55 +00:00
|
|
|
import std.stdio;
|
|
|
|
|
2012-04-09 01:06:38 +00:00
|
|
|
import test.base, test.cpu;
|
2012-03-31 19:44:23 +00:00
|
|
|
|
2012-03-30 19:10:49 +00:00
|
|
|
|
2012-04-12 22:42:55 +00:00
|
|
|
void main(string[] args)
|
2012-03-30 19:10:49 +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_timing_debug();
|
|
|
|
|
2012-04-12 22:42:55 +00:00
|
|
|
alias CPU!("6502", testStrict, testCumulative) T1;
|
|
|
|
writeln("Testing bus/timing, 6502");
|
|
|
|
foreach (op; opts.codes6502)
|
2012-04-03 00:58:51 +00:00
|
|
|
test_opcode_timing!T1(cast(ubyte)op, report);
|
2012-03-30 19:10:49 +00:00
|
|
|
|
2012-04-12 22:42:55 +00:00
|
|
|
alias CPU!("65C02", testStrict, testCumulative) T2;
|
|
|
|
writeln("Testing bus/timing, 65C02");
|
|
|
|
foreach (op; opts.codes65C02)
|
2012-04-03 00:58:51 +00:00
|
|
|
test_opcode_timing!T2(cast(ubyte)op, report);
|
2012-03-30 19:10:49 +00:00
|
|
|
}
|