I came across an article a long while ago on how to write out a .com file directly without using any external tools. the method was to basically copy con myfile.com and then hit ctrl+alt+number for each instruction.
I've lost the url for the guide... Google isn't helping much either.
If you have the link, please could you post it.