twoapple-reboot/test/test_bus.d

40 lines
1.2 KiB
D
Raw Normal View History

import test.base, test.cpu;
2012-03-31 19:44:23 +00:00
2012-03-30 19:10:49 +00:00
void main()
2012-03-30 19:10:49 +00:00
{
auto report = report_timing_debug();
2012-03-30 19:10:49 +00:00
alias CPU!("65C02", false, false) T1;
for (int op = 0x00; op < 0x100; op++)
test_opcode_timing!T1(cast(ubyte)op, report);
2012-03-30 19:10:49 +00:00
alias CPU!("65C02", true, false) T2;
for (int op = 0x00; op < 0x100; op++)
test_opcode_timing!T2(cast(ubyte)op, report);
2012-03-30 19:10:49 +00:00
alias CPU!("6502", false, false) T3;
for (int op = 0x00; op < 0x100; op++)
test_opcode_timing!T3(cast(ubyte)op, report);
2012-03-30 19:10:49 +00:00
alias CPU!("6502", true, false) T4;
for (int op = 0x00; op < 0x100; op++)
test_opcode_timing!T4(cast(ubyte)op, report);
2012-03-30 19:10:49 +00:00
2012-03-30 20:42:54 +00:00
alias CPU!("65C02", false, true) T5;
2012-03-30 19:10:49 +00:00
for (int op = 0x00; op < 0x100; op++)
test_opcode_timing!T5(cast(ubyte)op, report);
2012-03-30 19:10:49 +00:00
2012-03-30 20:42:54 +00:00
alias CPU!("65C02", true, true) T6;
2012-03-30 19:10:49 +00:00
for (int op = 0x00; op < 0x100; op++)
test_opcode_timing!T6(cast(ubyte)op, report);
2012-03-30 19:10:49 +00:00
2012-03-30 20:42:54 +00:00
alias CPU!("6502", false, true) T7;
2012-03-30 19:10:49 +00:00
for (int op = 0x00; op < 0x100; op++)
test_opcode_timing!T7(cast(ubyte)op, report);
2012-03-30 19:10:49 +00:00
2012-03-30 20:42:54 +00:00
alias CPU!("6502", true, true) T8;
2012-03-30 19:10:49 +00:00
for (int op = 0x00; op < 0x100; op++)
test_opcode_timing!T8(cast(ubyte)op, report);
2012-03-30 19:10:49 +00:00
}