BigEd wrote:
Just one interesting change: I think there's a need to jump back to the top after the indirect jump, if a return from 'g' is going to work
In my experience, it's rare that the sort of routine you would usually call with G would set the decimal flag and return without clearing it. Your change will handle that scenario correctly, though. Other than that you get a CRLF and a fresh prompt, which (like the register order) is one of those minor matters of personal preference that's easy to change if you would rather things be different. I just picked something that I could live with, but I certainly don't expect everyone to have the same preferences.
If people want to extend C'mon little by little, then go for it. The reason I released the single stepper as a plug in is because I want to keep C'mon itself minimal, since it's intended as something you can install on hardware that you're trying out for the first time. It's often very difficult to figure out why something's not working (or where the problem even is) if you're trying to debug a large piece of software and hardware simultaneously. It's supposed to be the software equivalent of getting that first light blinking. If there's interest in cranking out a version of C'mon with lots of features, I'm happy to answer questions or offer my thoughts, even if I don't wind up contributing much code.
And I'll make a confession here. I wrote the single step plug in to give a head start for outputting useful information when what works on my simulator doesn't work on someone else's system. That way I could just say single step from such-and-such an address, and usually have some idea of where to go from there depending on the result. If it's useful beyond that, then that's a nice bonus.