Local merge

This commit is contained in:
Ed McCardell 2012-04-16 05:03:22 -04:00
commit 696eab3127
12 changed files with 14 additions and 3025 deletions

1401
cmos.txt

File diff suppressed because it is too large Load Diff

1609
nmos.txt

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +0,0 @@
-version=Benchmark -inline -release -O -noboundscheck -I.. -I../src

View File

@ -1,10 +1,10 @@
module test.base;
module test.d6502.base;
import std.algorithm, std.array, std.conv, std.exception, std.getopt,
std.stdio, std.string;
import test.cpu, test.opcodes;
import test.d6502.cpu, test.d6502.opcodes;
import cpu.data_d6502;
@ -3414,7 +3414,7 @@ struct CheckOptions
op = op[2..$];
if (isNumeric(op))
{
int code = to!int(op, 16);
int code = parse!(int, string)(op, 16);
if (code >= 0x00 && code <= 0xFF)
{
codes6502 ~= [cast(ubyte)code];

2
test/d6502/benchopts Normal file
View File

@ -0,0 +1,2 @@
-version=Benchmark -inline -release -O -noboundscheck -I../.. -I../../src

View File

@ -3,14 +3,14 @@
* implementation, or that may be useful to any test which requires a
* cpu (as opposed to testing the cpu itself).
*/
module test.cpu;
module test.d6502.cpu;
import std.conv, std.exception, std.random, std.string, std.traits;
public import cpu.d6502 : Cpu, is6502, is65C02;
import test.base : strict, cumulative;
import test.d6502.base : strict, cumulative;
// True if T is the type of a cpu.

View File

@ -1,7 +1,7 @@
module test.opcodes;
module test.d6502.opcodes;
import test.cpu;
import test.d6502.cpu;
// 2-cycle opcodes which neither read nor write.

View File

@ -134,7 +134,8 @@ void runTest(OpDefs def, Tests test, string[] args)
writeln("With strict=", s, " cumulative=", c);
string cmdline = defStrings[def] ~ stStrings[s] ~ cmStrings[c] ~
fNames[test] ~ join(args, " ");
system("rdmd --force -I.. -I../src -version=RunTest " ~ cmdline);
system("rdmd --force -I../.. -I../../src -version=RunTest " ~
cmdline);
}
}
}

View File

@ -1,6 +1,6 @@
import std.stdio;
import test.base, test.cpu;
import test.d6502.base, test.d6502.cpu;
void main(string[] args)

View File

@ -1,6 +1,6 @@
import std.stdio;
import test.base, test.cpu;
import test.d6502.base, test.d6502.cpu;
void testDecimalMode(T)()

View File

@ -1,6 +1,6 @@
import std.stdio;
import test.base, test.cpu;
import test.d6502.base, test.d6502.cpu;
void main(string[] args)

View File

@ -1,2 +0,0 @@
-I.. -I../src -g