DRL DRLSAV (octal 62) - save program on perm file.

Usage:

drl    drlsav
zero   nameptr,0 or 1
zero   loc1,loc2
zero   entry addr,load org
zero   tra,bufloc

Where:

nameptr
points to three words. The name of a permanent file is given in words 1 and 2 (1-8 ASCII characters) and a BCD program name is given in word 3 (1-6 characters). (nameptr,0) implies that this is the first program to be saved on the file; (nameptr,1) implies that the file already exists.
loc1
is the initial address of the program.
loc2
is the final address of the program.
entry addr
is the entry address to be placed in the control block for the file.
load org
is the load origin to be placed in the control block for the file.
tra
is the location of the next instruction to be executed.
bufloc
is the location of a 64-word buffer.

Description:

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.