It takes inspiration from the formatting of the Apple II system monitor program. I've used this to generate text that I can paste into the monitor on an Apple II emulator for testing short 6502 programs.
It's written in Python, figured might be of use to some people on here too: https://github.com/simonboak/ebd
