HLT halts until interrupt
This commit is contained in:
parent
d55a53b186
commit
ec10a4d549
|
@ -32,7 +32,15 @@ class NmosUndoc(bool strict, bool cumulative) : NmosBase!(strict, cumulative)
|
|||
super();
|
||||
}
|
||||
|
||||
final void addrHalt() {}
|
||||
final void addrHalt()
|
||||
{
|
||||
programCounter--;
|
||||
/* TODO: check with the timer how many ticks until it would
|
||||
* stop me? */
|
||||
static if (cumulative) tick(totalCycles);
|
||||
else tick();
|
||||
}
|
||||
|
||||
final void addrImplied()
|
||||
{
|
||||
peek(programCounter);
|
||||
|
|
Loading…
Reference in New Issue