mirror of
https://github.com/edmccard/twoapple-reboot.git
synced 2024-09-13 21:55:39 +00:00
Timing fixes
This commit is contained in:
parent
9642b19154
commit
afc38b6775
@ -51,6 +51,8 @@ class Cmos(bool strict, bool cumulative) : Cpu!(strict, cumulative)
|
||||
{
|
||||
super.dec_addWithCarry(val);
|
||||
peek(programCounter);
|
||||
// TODO: fix this
|
||||
static if (cumulative) tick(1);
|
||||
flag.zero_ = flag.negative_ = accumulator;
|
||||
}
|
||||
|
||||
@ -71,6 +73,8 @@ class Cmos(bool strict, bool cumulative) : Cpu!(strict, cumulative)
|
||||
flag.carry = (diff < 0x100);
|
||||
|
||||
peek(programCounter);
|
||||
// TODO: fix this
|
||||
static if (cumulative) tick(1);
|
||||
flag.zero_ = flag.negative_ = accumulator = cast(ubyte)a;
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,6 @@ class NmosUndoc(bool strict, bool cumulative) : NmosBase!(strict, cumulative)
|
||||
/* TODO: check with the timer how many ticks until it would
|
||||
* stop me? */
|
||||
static if (cumulative) tick(totalCycles);
|
||||
else tick();
|
||||
}
|
||||
|
||||
final void addrImplied()
|
||||
|
Loading…
Reference in New Issue
Block a user