CTFE tweaks
This commit is contained in:
parent
c81ff27bae
commit
3c9c14364f
File diff suppressed because it is too large
Load Diff
|
@ -94,6 +94,13 @@ final class Cpu(string chip, bool strict, bool cumulative)
|
||||||
bool V, D, I, C;
|
bool V, D, I, C;
|
||||||
|
|
||||||
static if (opArray) { mixin(OpArrayDef()); }
|
static if (opArray) { mixin(OpArrayDef()); }
|
||||||
|
version(OpFunctions) {}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
static if (cumulative) { int cycles; }
|
||||||
|
ushort address, base;
|
||||||
|
ubyte data;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: other methods for stopping cpu
|
// TODO: other methods for stopping cpu
|
||||||
bool keepRunning;
|
bool keepRunning;
|
||||||
|
@ -132,7 +139,6 @@ final class Cpu(string chip, bool strict, bool cumulative)
|
||||||
static if (!opArray)
|
static if (!opArray)
|
||||||
{
|
{
|
||||||
static if (cumulative) { int cycles; }
|
static if (cumulative) { int cycles; }
|
||||||
ubyte op1;
|
|
||||||
ushort address, base;
|
ushort address, base;
|
||||||
ubyte data;
|
ubyte data;
|
||||||
}
|
}
|
||||||
|
@ -174,6 +180,6 @@ version(OpFunctions) mixin(OpBodies("65C02", vStrict, vCumulative));
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
import std.stdio;
|
import std.stdio;
|
||||||
writeln(OpBody(0x11, "6502", true, false));
|
writeln(OpBody(0x11, "65C02", true, false));
|
||||||
}
|
}
|
||||||
+/
|
+/
|
||||||
|
|
Loading…
Reference in New Issue