branlwyd / bdcpu16

DCPU-16 simulator based on version 1.7 of the DCPU-16 specification. See http://dcpu.com/.
0 stars 0 forks source link

Debug: improve interrupt support #19

Closed branlwyd closed 11 years ago

branlwyd commented 11 years ago

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.)

branlwyd commented 11 years ago

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