It seems that you are going to port alasm to your favorite OS

...
Ok, about subj, though I'm not alasm user... It seems that function 'nenado' saves all compiled code to tr-dos disk. The code should be described in array of structures and the array should be located at global label 'ObjTab'. Fields of the structure is commented in source ( as we can see it contains: filename ( 9 bytes ) , start adr at memory, length and file lenght[which can be used as last 2 letters of file name extension ] ).
So, you can use that function to save all your code, all you need as to fill the table and make call to 'nenado'.
There's also some strange hardcoded call to 8026...
Another words, you can write your own function that can do same thing

Good luck
