• Aucun résultat trouvé

Disk-to Disk Routine

Dans le document IBM 1620 Monitor II System Reference Manual (Page 39-42)

core image format before loading to disk storage.

Letter P, if read-only flags are to be written on disk addresses of storage sectors;

otherwise I e a v e blank.

Any non-blank character, if program to be loaded is a

FORTRAN or sps object pro-gram which requires sub-routines.

This routine can be 'used to copy data or programs in disk storage to any available (unoccupied) disk stor-age area including the work cylinders. A program to be copied should be specified by a DIM entry, an al-phabetic name that is in the Equivalence table, or a sector address given by the user. The program cannot be copied into an area which is already identified by a

DIM entry number, except the work area (DIM entry 0001). Read-only flags may be written with the disk sector addresses of the copy, except in work cylinders, at the option of the user. When this routine is used, the DIM table and the original program remain un-changed. It is not possible to copy a program over a portion of that same program. It is not possible to copy a program into the work cylinders if that pro-gram exceeds the work cylinder limits. Data can be copied from one portion of the work area to another;

however, no check will be made for overlapping of data within the work area. If a program or data to b~ copied is less than 100 sectors, there is no dan-ger of overlap.

If any read-only Hags are encountered in sector addresses within the copy area, an I/O routine error message is indicated. The program will be copied up to the point of the error.

The options offered by this routine are identified in the control card that follows.

Control Card (1JCOPY).

Columns 1 Asterisk (0) 2-6 Code word, DCOPY.

7-12 Alphabetic name of program to be copied.

13-16 The DIM entry number which identifies the program to be copied.

21-26 Beginning sector address of pro-gram or data to be copied.

27 -32 Ending sector address of pro-gram or data to be copied.

( Note that the beginning and ending sectors will always be used if present.)

33-38 Beginning disk sector address of the new copy. This address must be that of work cylinders or available disk storage. This field must always be punched.

51 Letter P, if read-only flags are to be written on disk sector ad-dresses at the new location of the program; otherwise leave blank.

The sectors that are to contain the copy must not have read-only flags in the sector address initially or an error will be indicated and copying will be termi-nated.

After the data is successfully copied, the message NNNNN SECTORS OF DATA

COPIED FROM XXXXXX TO YYYYYY

is typed, where NNNNN specifies the number of copied sectors and xxxxxx and yyyyyy are the

be-ginning sector addresses of the From and To areas, respectively. If the copied data is written with read-only flags, an additional message is typed.

AND FILE PROTECTED

To move a program or data from one disk area to another, it should be: (1) copied to the working cyl-inders from the original area, (2) deleted from the original area, and (3) loaded to the new area from the working cylinders. This can be accomplished by using the Disk-to-Disk, Delete Programs, and Load Programs routines, in that order. Therefore, a °DCOPY

control record is used to copy the program into work-ing cylinders; a ODELET control record is used to make the original storage area available by deleting its DIM entry and Equivalence table entry; and a

°DLOAD control record is used to load the program to a specified sector address and to generate the new DIM entry and Equivalence table entry.

Disk Utility Program 35

Delete Programs Routine

This routine can be used to delete a program and its associated DIM entry, Sequential Program table entry, and Equivalence table entry (if any) or entries be deleted (same name that ap-pears in Equivalence table).

DIM entry number of program to be deleted. (Note that either a Name or DIM entry number must be present, but not both.)

Define Parameters Routine

This routine can be used to alter the assignment of work cylinders, DIM table, Equivalence table, Sequen-tial Program table, or certain system specifications in (working cylinders, DIM table, or Sequential Pro-gram table) is attempted, the area must be available;

The normal assignment of disk storage for the above mentioned tables is as follows. parameter is invalid, those parameters to its right will not be processed.

Control Card (DFINE).

Columns 1 Asterisk (0).

2-6 Code word, DFINE.

7-12 Beginning disk sector address of work cylinders (must be first

SPS floating-point subroutines (disk sector positions 40-41 of for machines equipped with Automatic Divide feature.

02 - Variable-length mantissa floating-point subroutines for machines equipped

with the Automatic Divide feature.

03 - Variable-length mantissa floating-point subroutines for machines equipped with the Automatic Float-ing-point feature.

43 Standard N (noise) digit (any number 0-9) for sps

subrou-tines (disk sector position 44 of Communications Area; 0 when the system is delivered).

45-46 Standard length of mantissa (any number 02-28) for FOR-TRAN programs ( disk sector positions 45-46 of Communica-tions Area; 08 when the system is delivered).

48-49 Standard fixed-point word length (any number 04-10) for

FORTRAN programming system (disk sector positions 47-48 of Communication Area, 04 when the system is delivered).

51 Source of Input, other than disk input, for FORTRAN subpro-grams (disk sector position 73 of Communications Area; 5 when the system is delivered).

3==paper tape 5==card

53 Core storage capacity of object machine (disk sector position 76 of Communications Area; 1 when the system is delivered).

1==20,000 3==40,000 5==60,000

57 FORTRAN Arithmetic and I/O subroutine set identification number (disk sector position 83 of Communications Area; 1 when the system is delivered).

1 or 3 == disk storage version for machines equipped with the Automatic Float-ing-Point feature.

2 or 4 == core storage version for machines equipped

Form C26-5774-0 Page Revised 1/20/64 By TNL N26-0057 with the Automatic Float-ing-Point feature.

The number of disk storage drives on the system may be 1, 2, 3 or 4. The Supervisor Program and the Disk Utility Program will need to know this number in order to utilize all available disk storage. The sys-tem will utilize only the first disk storage drive unless additional drive availability is specified by a DFINE

control card. Therefore, it may be necessary for the user to process a DFlNE control card immediately after initially loading the Monitor System. When loading programs and assigning addresses, the Monitor System will start with the first available sector on the first available disk drive and proceed sequentially higher to available drives. Also, the user may want to change some of the other parameters of the system before any actual processing is initiated. If any errors are found in any data on a DFINE control card, all data to the left of the data in error will have been processed and data to the right will be ignored. See ERROR DETEC-TION AND CORRECDETEC-TION for a description of possible

DFINE errors.

When the routine is used to enlarge or shorten the tables or to change the number of disk storage drives for the system, the ~DFINE record should be followed by a =F =FPAUS record. After the routine is executed,

=F =FPAUS record will halt the computer to allow the operator to reinitialize the System; i.e., to reload the Monitor System into core storage. The procedure for calling the System into core storage from disk storage is deserted under OPERATION in the Monitor II System Section.

Define Disk Pack Label Routine

This routine can be used to initialize a new disk pack for the Monitor System by writing the disk pack iden-tification number in the label sectors (first and last sectors of cylinder 99) and the Sequential Program table in cylinder 99. All disk packs used by the Moni-tor System must be labeled and must contain a Se-quential Program table. The disk pack identification number is written in the first five positions of the first sector in cylinder 99 and a read-only flag is written over the corresponding sector address. The same number is also written in the 31st through 35th posi-tions of posiposi-tions 1-100 of the last sector of the disk pack. This sector address is changed to 00199 regard-less of the addressing scheme used for the remainder of the disk pack.

Note that it is necessary to initialize the disk pack which contains the Monitor system because the

sys-Disk Utilitu Program 37

tem pack is not automatically initialized when the system is loaded. Label sectors on a pack which con-tains the Monitor System may be changed by this routine; however, the Sequential Program table will not be re-initialized. The Monitor System disk pack is identified by 04800 in the sector address portion of DIM entry 3.

The format of the control card follows.

Control Card (DLABL)

Columns 1 Asterisk (0).

2-6 Code word, DLABL.

7-11 Disk pack indentification num-der to be assigned.

12 Disk drive number (0, 1, 2, or 3) of the disk drive that con-tains the disk pack to be label-ed.

Both a disk pack identification number and disk drive number must be given. If either one is missing, the message

DUP 0 ERROR 01

is typed and the computer halts without writing label sectors. To correct the error, the operator may enter a corrected control card in the stacked input. Depress-ing the Start key will return control to the Monitor

Control Record Analyzer routine to read the next Monitor Control record in the stacked input.

Only numerical characters may be entered for the disk pack identification number. If this number is all zeros or any position contains a letter or special char-acter, the message

DUP 0 ERROR 10

is typed and the computer halts without writing a label sector. The restart procedure is the same as that given above for ERROR 01.

Define FORTRAN Library Subroutine Name

Dans le document IBM 1620 Monitor II System Reference Manual (Page 39-42)