mfld-fr / emu86

Intel IA16 emulator for embedded development
35 stars 6 forks source link

main: allow multiple breakpoints to be specified #45

Closed cocus closed 3 years ago

cocus commented 3 years ago

As a side effect, the step-over "next address breakpoint" gets another variable to store it, rather than reusing the main code breakpoint address.

mfld-fr commented 3 years ago

Fine for me, just waiting @ghaerr feedback as he was the one who asked for multiple breakpoints.

ghaerr commented 3 years ago

Looks great, thank you @cocus!

cocus commented 3 years ago

I might add this feature into the stdio debug console, so we can write b <address>. I think the 8 char buffer should be enouhg to hold a full logical address and two additional chars ('b' and ' ').

ghaerr commented 3 years ago

I might add this feature into the stdio debug console, so we can write b <address>.

That would be great!

Actually, it would be nice if the command line parameters which also are duplicated in debug console were handled by the same code, rather than duplicating it. Of course, the character used for the command line argument and the character used for the debug console may not be the same. Thus, I think even more reorganization in emu-main.c is needed.

I think the 8 char buffer should be enouhg to hold a full logical address and two additional chars ('b' and ' ').

Just increase the buffer size.