dcpu16.js icon indicating copy to clipboard operation
dcpu16.js copied to clipboard

possible additional feature - a 'step' button?

Open wrincewind opened this issue 13 years ago • 3 comments

just a button you can press to execute one line[or more likely, one cycle] at a time. would be useful, especially for debugging loops and the like.

wrincewind avatar Apr 08 '12 20:04 wrincewind

I can easily add a button for this, but doesn't F10 work for you? That does the stepping...

dwilliamson avatar Apr 08 '12 21:04 dwilliamson

honestly, i'm not sure. using f10 doesn't seem to affect the program... i can't see what line it's currently on. does it highlight the current line, or what?

wrincewind avatar Apr 09 '12 00:04 wrincewind

Yes, when the program breaks (insert a "BRK" instruction or press F9) the current line is marked with a red background.

dwilliamson avatar Apr 09 '12 13:04 dwilliamson