I started looking at the IMSAI 8K basic listing but
there's a fair
amount of hardware-specific I/O code in it scattered throughout so I'm
not thrilled about modifying it... (and the only source listing I can
find is in a PDF, which doesn't help any...)
Adobe Acrobat X can OCR it and may help