HLT halts until interrupt

This commit is contained in:
edmccard 2012-03-25 04:01:08 -04:00
parent d55a53b186
commit ec10a4d549
1 changed files with 9 additions and 1 deletions

View File

@ -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);