2. The routine then checks the number of entries in the reference
table. If the number is zero, the routineperforms operation 5; otherwise, the routine performs operation 3.
3. The routine nextdetermines the address of the first (or next)
reference table entry to have its name checked, incrementsby one the count it is keeping of name COMparisons, and cOmpares the given name with the name contained in that entry. If the
names are identical,PRSERCH branches to the location specified
in the routine that linked to it.PRSERCH then returns the
address of the REFTBL entry; elsePRSERCB performs operation 4. 4. The routine then determines whether there is another reference
table entry to be checked. If there is none, the routine
performs operation 5; if there is another, the routine
decrementsby one the number of entries remaining and repeats
its operation starting with operation 3.
5. If all the entries have been checked, and none contains the
given name for which this routine is searching, the routine
increments by one the count it is keeping of namecomparisons, places that new value in area TBLCT, moves the given name to form a new reference table entry, and returns to the calling
program.
Exits routine exits to either of two locations, both of which are
specified by the routine that linked to this routine. The first
location is that specified in the event that an entry for the givenname is found; the second location is that specified in the event
that such as entry is not found.LOADER DATA BASES ESD Card Codes (col. 25 ••• ) £Qde 00 SD (CSECT or START) Oi LD (ENTRY) 02 ER (EXTRN) 04 PC (Private code) 05 CM (COMMON) 06 ID (Pseudo-register) OA WI (WEAK EXTERN) ESIDTB ENTRY The ESD ID table (ESIDTB) is constructed separately for each text deck
processed by the loader. The ESIDTB produces a correspondence between
ESD IDnumbers (used on RLD cards) and entries in the loader reference
table(R!FTBL) as specified by the ESD cards. Thus, the ESIDTB is
constructed while processing theESD cards. It is then used to process
theTXT and RLD cards in the text deck.
The ESIDTB is treated as an array and is accessed by using the IDnumber as an index. Each ESIDTB entry is 16 bits long. CMS Method of Operation and Program Organization 2-83
table. If the number is zero, the routine
3. The routine next
reference table entry to have its name checked, increments
names are identical,
in the routine that linked to it.
address of the REFTBL entry; else
table entry to be checked. If there is none, the routine
performs operation 5; if there is another, the routine
decrements
its operation starting with operation 3.
5. If all the entries have been checked, and none contains the
given name for which this routine is searching, the routine
increments by one the count it is keeping of name
program.
Exits
specified by the routine that linked to this routine. The first
location is that specified in the event that an entry for the given
that such as entry is not found.
processed by the loader. The ESIDTB produces a correspondence between
ESD ID
table
constructed while processing the
the
The ESIDTB is treated as an array and is accessed by using the ID