drl drlsav zero nameptr,0 or 1 zero loc1,loc2 zero entry addr,load org zero tra,bufloc
DRL DRLSAV writes an element (program) onto a permanent file in standard program format. The element can then be loaded with a DRL RESTOR. If the saved program is the first on the file (nameptr,0), a catalog block and an available space block are initialized. If the program is saved on an existing file (nameptr,1), the catalog and available space blocks are updated. The file name referred to must be in the AFT upon entry to the derail.
The entry address and load origin are not actually used by DRLSAV, but may be required for a later RESTOR and are therefore included.
Upon return to the transfer address, the A register contains zero if the DRLSAV was successful. It contains a 1-bit in position 35 if the file is not large enough to accommodate the requested DRLSAV. The user may grow the file and attempt the derail again.
Copyright © 2000, Thinkage Ltd.