Switched interrupt management to a new set of Trigger functions and static Trigger objects, eliminating the old InterruptQueue of constantly created/destroyed InterruptEvents
This commit is contained in:
parent
8bb978d7a9
commit
686396d726
6 changed files with 255 additions and 254 deletions
|
|
@ -1704,8 +1704,8 @@ PDP11.opWAIT = function(opCode)
|
|||
*
|
||||
* 1) opWAIT() sets a new opFlags bit (OPFLAG.WAIT)
|
||||
* 2) Rewind the PC back to the WAIT instruction
|
||||
* 3) Whenever stepCPU() detects OPFLAG.WAIT, call checkInterruptQueue()
|
||||
* 4) If checkInterruptQueue() detects an interrupt, advance PC past the WAIT and then dispatch the interrupt
|
||||
* 3) Whenever stepCPU() detects OPFLAG.WAIT, call checkInterrupts()
|
||||
* 4) If checkInterrupts() detects an interrupt, advance PC past the WAIT and then dispatch the interrupt
|
||||
*
|
||||
* Technically, the PC is already exactly where it's supposed to be, so why are we wasting time with steps
|
||||
* 2 and 4? It's largely for the Debugger's sake, so that as long as execution is "blocked" by a WAIT, that's
|
||||
|
|
|
|||
Loading…
Reference in a new issue