TheGoodDoktor / 8BitAnalysers

MIT License
98 stars 14 forks source link

New function Step Out #22

Open TheStruggleForAntiSpaghetti opened 1 year ago

TheStruggleForAntiSpaghetti commented 1 year ago

Could a function next to Step Into and Step Over be added (named Step Out?) that executes until after a RET?

When stepping through the code, after using Step Into to step into a CALLed subroutine, one doesn't always want to execute the rest of that subroutine but likes to continue to the address after it was called.

The function would also work with repeating/looping instructions like LDIR, CPIR, etc. where one would Step Into then would like to continue after BC=0.

With the latter, I now set a breakpoint just after the LDIR and press Continue. But with the first, that isn't that simple, as the calling code can be far away, or even in another 128k membank.

TheStruggleForAntiSpaghetti commented 4 months ago

The 2nd part now works if one uses Step Over.

The wish for part 1 to be able to step out of a subroutine (basically until the address currently on the top of the stack is removed?) still remains. In SpecEmu this is called "Exit Sub".