next up previous contents index
Next: Global operational aids Up: Data structure utilities Previous: LZFIND et al.

LZFID et al. - utilities to find a bank by sequential scan

Unlike the routines of the previous paragraphs which access banks by following the links of the structure, the routines of this paragraph perform a scan over the memory, looking at each bank in turn in the order in which they happen to be in the dynamic store, to find the bank wanted. For large memories with many banks this is likely to be an expensive operation and should not be used unless there is no other way.

LZFID!LF = LZFID (IXDIV, IDH,IDN, !LGO)

searches the division indicated by IXDIV, either starting at its beginning if LGO=0 or with the first bank after the bank at LGO, for the first bank with has the identifiers IDH and IDN.

LZFIDH!LF = LZFIDH (IXDIV, IDH, !LGO)

searches the division indicated by IXDIV, either starting at its beginning if LGO=0 or with the first bank after the bank at LGO, for the first bank with has the Hollerith identifier IDH.

LZSCAN!LF = LZSCAN (IXDIV, !LGO)

searches the division indicated by IXDIV, either starting at its beginning if LGO=0 or with the first bank after the bank at LGO, for the first bank.

LZSCAN returns \IQUEST(1) containing zero if the bank at LF is live, or one if the bank is dead.


Janne Saarela
Mon May 15 08:34:47 METDST 1995