83Plus:BCALLs:805D
From WikiTI
Synopsis
Unofficial Name: FindSubField
BCALL Address: 805D
Search for a subfield of the given field.
Inputs
- AHL = address of the first type byte of the field whose contents you want to search
- DE = field to search for (e.g. 0A10 to search for the calculator ID)
Outputs
- HL = address of the first type byte of the first matching field
- NZ set if not found.
Destroys
Comments
This routine is much like the other field search routines, but starts by skipping to the data section of the given field, and continues from there.
It does not keep track of whether the "subfield" is actually within the parent field; it simply stops when it reaches FF.
See FindGroupedField for an example.