branlwyd / bdcpu16

DCPU-16 simulator based on version 1.7 of the DCPU-16 specification. See http://dcpu.com/.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Debug: improve interrupt support

branlwyd opened this issue · comments

Currently, the debugger will "skip" stopping on the first instruction of the interrupt handler when an interrupt is received. Ths is because of the way the debugger works: it can only pause when it is notified of activity by the CPU through the cyclesElapsed() function, but cyclesElapsed() is called in step() only after both handling an interrupt and executing an instruction.

Likely this bugfix will fall out of some other architectural change. (See issue #18.)

This is fixed as a side-effect of the changes in e204532.