I found a number of hits there from GOOGLE, but found,
also, that they were
apparently out of date and inaccessible.
A traditional macro-assembler is a wonderful tool, but probably
inappropriate
for inclusion in a debug monitor intended to reside in
the processor's
on-board ROM.
If you don't mind translating a not too-terribly-long
program for another processor, then I believe MIKBUG
for the 6800 may do ok. My first embedded
systems project was a 6800, and I included MIKBUG in
the ROM so that I could precisely what you want to
do.
The 8051 being a more generous chip register-wise,
translating it shouldn't be difficult.
You can find at least one version here:
http://www.swtpc.com/mholley/MP_A/mikbug.txt
Looks like a fun weekend project.
Regards,
-doug q