I originally wrote this for a Z80 back in the early 80s. I found the source code recently in one of the boxes of printouts I ve kept over the years. Good thing too, since most of the work was on a CPM system using 128k 8inch floppies.