Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_28.ADF » F/+HINT9

F/+HINT9

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_28.ADF
Filename: F/+HINT9
Read OK:
File size: 1472 bytes
Load address: 48204556
Exec address: 35544E49
File contents
CHKEOF

CHKEOF checks the character in the A register for an end of field marker. 
It should be used rather than checking for the character explicitly since it
handles classes of characters rather than single values.  Generally, it is
not necessary to detect illegal characters explicitly, it is enough to
detect them as an end of field marker.

On entry:       A               contains character value to be checked.

On exit:        EQ              end of field.
                CS              end of record (EQ also set).

                VS              illegal character (EQ also set).
                A,X,Y           preserved.


CHKEOR

CHKEOR  checks the character in the A register for an end of record marker.

On entry:               A               contains character to be checked.

On exit:                EQ              end of record.
                        CS              end of file (EQ also set).
                        VS              space character (EQ also set).
                        A,X,Y           preserved.


SIZFLD

SIZFLD is provided to allow you to determine the size of a field.  First of
all you should locate the field, using one of the field locator routines
such GETFLD, which set up TEMP06.  Then call SIZFLD.

On entry:               TEMP06          points to the beginning of the
                                        field.

On exit:                A,Y             have length of field in characters.
                        EQ              zero length field.
                        X               preserved.
                        TEMP06          preserved.


CMPFLD

CMPFLD compares the values of two fields of the same type, and sets the 6502
flags register like the CMP instruction.  TEMP07 points to the first field
(equivalent to the contents of the 6502 A register in the CMP instruction),
and TEMP06 points to the second field.  If the two fields being compared are
strings, then wildcards are allowed in the second string.

On entry:       A               contains the field type: A, N, D or Y; must
                                be in upper case.
                TEMP07          points to field 1.
                TEMP06          points to field 2.

On exit:        VS              error in one of the fields supplied: eg
                                illegal date; result not valid.
                C flag          set according to compare.
                Z flag          set according to compare.
                A,X,Y           undefined.


SCHFLD

SCHFLD is used to find the number of a field, given its name.  It searches
the list of fields in the format file until it finds one that fits the name
given.  The name that you specify can obtain wild cards: the single wildcard
"?", and the multiple wildcard "*" are both allowed.  SCHFLD will always
return the first field in the format file that fits the name you have given. 
You can either continue searching for more fields by using the SCHFLD call
described next.

The name of the field is set up in the 16 byte LWORK area.  It should be
terminated by a null, or an end of field marker.  It must not be longer then
16 bytes, including the delimiter.

On entry:       LWORK           contains name to search for; maximum of 16
                                bytes including delimiter; delimiter null
                                or end of field marker; wildcards "?" and
                                "*" valid.

On exit:        CS              no field found to match the name; A has
                                error code.
                CC              field found OK; field number in X.


SCHFLN

After calling SCHFLD, you can search for other fields which also fit the
field specification that you gave given, by making repeated calls to SCHFLN. 
Before you call SCHFLN, you must have called SCHFLD first, to start the
sequence, and this call must have successfully found a field.

You can keep calling SCHFLN until the call returns with the Carry flag set
to indicate that it has found no more fields.

On entry:               Must have called SCHFLD first, and this must have
                        returned with the Carry flag clear.
           A            Contains field number to start searching 
                        from.  This should be one more than the last value
                        that SCHFLD or SCHFLN returned in X.

On exit:   CS           no more fields found; A has error code  (report only
                        if required).
           CC           field found; field number in X.


GETWID

GETWID returns the display width of a field, as defined in the format file. 
If there is no display width defined, a series of defaults comes into
action.

Display width defined                   Display width  
No display width, Sheet mode            18 
No display width, Card mode             0 

On entry:               X               contains number of field for which
                                        width is required.

On exit:                CS              field doesn't exit.
                        CC              field found; A has display width.
                        X               preserved.
                        Y               undefined.

00000000  0d 43 48 4b 45 4f 46 0d  0d 43 48 4b 45 4f 46 20  |.CHKEOF..CHKEOF |
00000010  63 68 65 63 6b 73 20 74  68 65 20 63 68 61 72 61  |checks the chara|
00000020  63 74 65 72 20 69 6e 20  74 68 65 20 41 20 72 65  |cter in the A re|
00000030  67 69 73 74 65 72 20 66  6f 72 20 61 6e 20 65 6e  |gister for an en|
00000040  64 20 6f 66 20 66 69 65  6c 64 20 6d 61 72 6b 65  |d of field marke|
00000050  72 2e 20 0d 49 74 20 73  68 6f 75 6c 64 20 62 65  |r. .It should be|
00000060  20 75 73 65 64 20 72 61  74 68 65 72 20 74 68 61  | used rather tha|
00000070  6e 20 63 68 65 63 6b 69  6e 67 20 66 6f 72 20 74  |n checking for t|
00000080  68 65 20 63 68 61 72 61  63 74 65 72 20 65 78 70  |he character exp|
00000090  6c 69 63 69 74 6c 79 20  73 69 6e 63 65 20 69 74  |licitly since it|
000000a0  0d 68 61 6e 64 6c 65 73  20 63 6c 61 73 73 65 73  |.handles classes|
000000b0  20 6f 66 20 63 68 61 72  61 63 74 65 72 73 20 72  | of characters r|
000000c0  61 74 68 65 72 20 74 68  61 6e 20 73 69 6e 67 6c  |ather than singl|
000000d0  65 20 76 61 6c 75 65 73  2e 20 20 47 65 6e 65 72  |e values.  Gener|
000000e0  61 6c 6c 79 2c 20 69 74  20 69 73 0d 6e 6f 74 20  |ally, it is.not |
000000f0  6e 65 63 65 73 73 61 72  79 20 74 6f 20 64 65 74  |necessary to det|
00000100  65 63 74 20 69 6c 6c 65  67 61 6c 20 63 68 61 72  |ect illegal char|
00000110  61 63 74 65 72 73 20 65  78 70 6c 69 63 69 74 6c  |acters explicitl|
00000120  79 2c 20 69 74 20 69 73  20 65 6e 6f 75 67 68 20  |y, it is enough |
00000130  74 6f 0d 64 65 74 65 63  74 20 74 68 65 6d 20 61  |to.detect them a|
00000140  73 20 61 6e 20 65 6e 64  20 6f 66 20 66 69 65 6c  |s an end of fiel|
00000150  64 20 6d 61 72 6b 65 72  2e 0d 0d 4f 6e 20 65 6e  |d marker...On en|
00000160  74 72 79 3a 20 20 20 20  20 20 20 41 20 20 20 20  |try:       A    |
00000170  20 20 20 20 20 20 20 20  20 20 20 63 6f 6e 74 61  |           conta|
00000180  69 6e 73 20 63 68 61 72  61 63 74 65 72 20 76 61  |ins character va|
00000190  6c 75 65 20 74 6f 20 62  65 20 63 68 65 63 6b 65  |lue to be checke|
000001a0  64 2e 0d 0d 4f 6e 20 65  78 69 74 3a 20 20 20 20  |d...On exit:    |
000001b0  20 20 20 20 45 51 20 20  20 20 20 20 20 20 20 20  |    EQ          |
000001c0  20 20 20 20 65 6e 64 20  6f 66 20 66 69 65 6c 64  |    end of field|
000001d0  2e 0d 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
000001e0  20 20 43 53 20 20 20 20  20 20 20 20 20 20 20 20  |  CS            |
000001f0  20 20 65 6e 64 20 6f 66  20 72 65 63 6f 72 64 20  |  end of record |
00000200  28 45 51 20 61 6c 73 6f  20 73 65 74 29 2e 0d 0d  |(EQ also set)...|
00000210  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000220  56 53 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |VS              |
00000230  69 6c 6c 65 67 61 6c 20  63 68 61 72 61 63 74 65  |illegal characte|
00000240  72 20 28 45 51 20 61 6c  73 6f 20 73 65 74 29 2e  |r (EQ also set).|
00000250  0d 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
00000260  20 41 2c 58 2c 59 20 20  20 20 20 20 20 20 20 20  | A,X,Y          |
00000270  20 70 72 65 73 65 72 76  65 64 2e 0d 0d 0d 43 48  | preserved....CH|
00000280  4b 45 4f 52 0d 0d 43 48  4b 45 4f 52 20 20 63 68  |KEOR..CHKEOR  ch|
00000290  65 63 6b 73 20 74 68 65  20 63 68 61 72 61 63 74  |ecks the charact|
000002a0  65 72 20 69 6e 20 74 68  65 20 41 20 72 65 67 69  |er in the A regi|
000002b0  73 74 65 72 20 66 6f 72  20 61 6e 20 65 6e 64 20  |ster for an end |
000002c0  6f 66 20 72 65 63 6f 72  64 20 6d 61 72 6b 65 72  |of record marker|
000002d0  2e 0d 0d 4f 6e 20 65 6e  74 72 79 3a 20 20 20 20  |...On entry:    |
000002e0  20 20 20 20 20 20 20 20  20 20 20 41 20 20 20 20  |           A    |
000002f0  20 20 20 20 20 20 20 20  20 20 20 63 6f 6e 74 61  |           conta|
00000300  69 6e 73 20 63 68 61 72  61 63 74 65 72 20 74 6f  |ins character to|
00000310  20 62 65 20 63 68 65 63  6b 65 64 2e 0d 0d 4f 6e  | be checked...On|
00000320  20 65 78 69 74 3a 20 20  20 20 20 20 20 20 20 20  | exit:          |
00000330  20 20 20 20 20 20 45 51  20 20 20 20 20 20 20 20  |      EQ        |
00000340  20 20 20 20 20 20 65 6e  64 20 6f 66 20 72 65 63  |      end of rec|
00000350  6f 72 64 2e 0d 20 20 20  20 20 20 20 20 20 20 20  |ord..           |
00000360  20 20 20 20 20 20 20 20  20 20 20 20 20 43 53 20  |             CS |
00000370  20 20 20 20 20 20 20 20  20 20 20 20 20 65 6e 64  |             end|
00000380  20 6f 66 20 66 69 6c 65  20 28 45 51 20 61 6c 73  | of file (EQ als|
00000390  6f 20 73 65 74 29 2e 0d  20 20 20 20 20 20 20 20  |o set)..        |
000003a0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000003b0  56 53 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |VS              |
000003c0  73 70 61 63 65 20 63 68  61 72 61 63 74 65 72 20  |space character |
000003d0  28 45 51 20 61 6c 73 6f  20 73 65 74 29 2e 0d 20  |(EQ also set).. |
000003e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000003f0  20 20 20 20 20 20 20 41  2c 58 2c 59 20 20 20 20  |       A,X,Y    |
00000400  20 20 20 20 20 20 20 70  72 65 73 65 72 76 65 64  |       preserved|
00000410  2e 0d 0d 0d 53 49 5a 46  4c 44 0d 0d 53 49 5a 46  |....SIZFLD..SIZF|
00000420  4c 44 20 69 73 20 70 72  6f 76 69 64 65 64 20 74  |LD is provided t|
00000430  6f 20 61 6c 6c 6f 77 20  79 6f 75 20 74 6f 20 64  |o allow you to d|
00000440  65 74 65 72 6d 69 6e 65  20 74 68 65 20 73 69 7a  |etermine the siz|
00000450  65 20 6f 66 20 61 20 66  69 65 6c 64 2e 20 20 46  |e of a field.  F|
00000460  69 72 73 74 20 6f 66 0d  61 6c 6c 20 79 6f 75 20  |irst of.all you |
00000470  73 68 6f 75 6c 64 20 6c  6f 63 61 74 65 20 74 68  |should locate th|
00000480  65 20 66 69 65 6c 64 2c  20 75 73 69 6e 67 20 6f  |e field, using o|
00000490  6e 65 20 6f 66 20 74 68  65 20 66 69 65 6c 64 20  |ne of the field |
000004a0  6c 6f 63 61 74 6f 72 20  72 6f 75 74 69 6e 65 73  |locator routines|
000004b0  0d 73 75 63 68 20 47 45  54 46 4c 44 2c 20 77 68  |.such GETFLD, wh|
000004c0  69 63 68 20 73 65 74 20  75 70 20 54 45 4d 50 30  |ich set up TEMP0|
000004d0  36 2e 20 20 54 68 65 6e  20 63 61 6c 6c 20 53 49  |6.  Then call SI|
000004e0  5a 46 4c 44 2e 0d 0d 4f  6e 20 65 6e 74 72 79 3a  |ZFLD...On entry:|
000004f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 54  |               T|
00000500  45 4d 50 30 36 20 20 20  20 20 20 20 20 20 20 70  |EMP06          p|
00000510  6f 69 6e 74 73 20 74 6f  20 74 68 65 20 62 65 67  |oints to the beg|
00000520  69 6e 6e 69 6e 67 20 6f  66 20 74 68 65 0d 20 20  |inning of the.  |
00000530  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000550  20 20 20 20 20 20 66 69  65 6c 64 2e 0d 0d 4f 6e  |      field...On|
00000560  20 65 78 69 74 3a 20 20  20 20 20 20 20 20 20 20  | exit:          |
00000570  20 20 20 20 20 20 41 2c  59 20 20 20 20 20 20 20  |      A,Y       |
00000580  20 20 20 20 20 20 68 61  76 65 20 6c 65 6e 67 74  |      have lengt|
00000590  68 20 6f 66 20 66 69 65  6c 64 20 69 6e 20 63 68  |h of field in ch|
000005a0  61 72 61 63 74 65 72 73  2e 0d 20 20 20 20 20 20  |aracters..      |
000005b0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000005c0  20 20 45 51 20 20 20 20  20 20 20 20 20 20 20 20  |  EQ            |
000005d0  20 20 7a 65 72 6f 20 6c  65 6e 67 74 68 20 66 69  |  zero length fi|
000005e0  65 6c 64 2e 0d 20 20 20  20 20 20 20 20 20 20 20  |eld..           |
000005f0  20 20 20 20 20 20 20 20  20 20 20 20 20 58 20 20  |             X  |
00000600  20 20 20 20 20 20 20 20  20 20 20 20 20 70 72 65  |             pre|
00000610  73 65 72 76 65 64 2e 0d  20 20 20 20 20 20 20 20  |served..        |
00000620  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000630  54 45 4d 50 30 36 20 20  20 20 20 20 20 20 20 20  |TEMP06          |
00000640  70 72 65 73 65 72 76 65  64 2e 0d 0d 0d 43 4d 50  |preserved....CMP|
00000650  46 4c 44 0d 0d 43 4d 50  46 4c 44 20 63 6f 6d 70  |FLD..CMPFLD comp|
00000660  61 72 65 73 20 74 68 65  20 76 61 6c 75 65 73 20  |ares the values |
00000670  6f 66 20 74 77 6f 20 66  69 65 6c 64 73 20 6f 66  |of two fields of|
00000680  20 74 68 65 20 73 61 6d  65 20 74 79 70 65 2c 20  | the same type, |
00000690  61 6e 64 20 73 65 74 73  20 74 68 65 20 36 35 30  |and sets the 650|
000006a0  32 0d 66 6c 61 67 73 20  72 65 67 69 73 74 65 72  |2.flags register|
000006b0  20 6c 69 6b 65 20 74 68  65 20 43 4d 50 20 69 6e  | like the CMP in|
000006c0  73 74 72 75 63 74 69 6f  6e 2e 20 20 54 45 4d 50  |struction.  TEMP|
000006d0  30 37 20 70 6f 69 6e 74  73 20 74 6f 20 74 68 65  |07 points to the|
000006e0  20 66 69 72 73 74 20 66  69 65 6c 64 0d 28 65 71  | first field.(eq|
000006f0  75 69 76 61 6c 65 6e 74  20 74 6f 20 74 68 65 20  |uivalent to the |
00000700  63 6f 6e 74 65 6e 74 73  20 6f 66 20 74 68 65 20  |contents of the |
00000710  36 35 30 32 20 41 20 72  65 67 69 73 74 65 72 20  |6502 A register |
00000720  69 6e 20 74 68 65 20 43  4d 50 20 69 6e 73 74 72  |in the CMP instr|
00000730  75 63 74 69 6f 6e 29 2c  0d 61 6e 64 20 54 45 4d  |uction),.and TEM|
00000740  50 30 36 20 70 6f 69 6e  74 73 20 74 6f 20 74 68  |P06 points to th|
00000750  65 20 73 65 63 6f 6e 64  20 66 69 65 6c 64 2e 20  |e second field. |
00000760  20 49 66 20 74 68 65 20  74 77 6f 20 66 69 65 6c  | If the two fiel|
00000770  64 73 20 62 65 69 6e 67  20 63 6f 6d 70 61 72 65  |ds being compare|
00000780  64 20 61 72 65 0d 73 74  72 69 6e 67 73 2c 20 74  |d are.strings, t|
00000790  68 65 6e 20 77 69 6c 64  63 61 72 64 73 20 61 72  |hen wildcards ar|
000007a0  65 20 61 6c 6c 6f 77 65  64 20 69 6e 20 74 68 65  |e allowed in the|
000007b0  20 73 65 63 6f 6e 64 20  73 74 72 69 6e 67 2e 0d  | second string..|
000007c0  0d 4f 6e 20 65 6e 74 72  79 3a 20 20 20 20 20 20  |.On entry:      |
000007d0  20 41 20 20 20 20 20 20  20 20 20 20 20 20 20 20  | A              |
000007e0  20 63 6f 6e 74 61 69 6e  73 20 74 68 65 20 66 69  | contains the fi|
000007f0  65 6c 64 20 74 79 70 65  3a 20 41 2c 20 4e 2c 20  |eld type: A, N, |
00000800  44 20 6f 72 20 59 3b 20  6d 75 73 74 0d 20 20 20  |D or Y; must.   |
00000810  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000820  20 20 20 20 20 20 20 20  20 20 20 20 20 62 65 20  |             be |
00000830  69 6e 20 75 70 70 65 72  20 63 61 73 65 2e 0d 20  |in upper case.. |
00000840  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 54  |               T|
00000850  45 4d 50 30 37 20 20 20  20 20 20 20 20 20 20 70  |EMP07          p|
00000860  6f 69 6e 74 73 20 74 6f  20 66 69 65 6c 64 20 31  |oints to field 1|
00000870  2e 0d 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
00000880  20 20 54 45 4d 50 30 36  20 20 20 20 20 20 20 20  |  TEMP06        |
00000890  20 20 70 6f 69 6e 74 73  20 74 6f 20 66 69 65 6c  |  points to fiel|
000008a0  64 20 32 2e 0d 0d 4f 6e  20 65 78 69 74 3a 20 20  |d 2...On exit:  |
000008b0  20 20 20 20 20 20 56 53  20 20 20 20 20 20 20 20  |      VS        |
000008c0  20 20 20 20 20 20 65 72  72 6f 72 20 69 6e 20 6f  |      error in o|
000008d0  6e 65 20 6f 66 20 74 68  65 20 66 69 65 6c 64 73  |ne of the fields|
000008e0  20 73 75 70 70 6c 69 65  64 3a 20 65 67 0d 20 20  | supplied: eg.  |
000008f0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000900  20 20 20 20 20 20 20 20  20 20 20 20 20 20 69 6c  |              il|
00000910  6c 65 67 61 6c 20 64 61  74 65 3b 20 72 65 73 75  |legal date; resu|
00000920  6c 74 20 6e 6f 74 20 76  61 6c 69 64 2e 0d 20 20  |lt not valid..  |
00000930  20 20 20 20 20 20 20 20  20 20 20 20 20 20 43 20  |              C |
00000940  66 6c 61 67 20 20 20 20  20 20 20 20 20 20 73 65  |flag          se|
00000950  74 20 61 63 63 6f 72 64  69 6e 67 20 74 6f 20 63  |t according to c|
00000960  6f 6d 70 61 72 65 2e 0d  20 20 20 20 20 20 20 20  |ompare..        |
00000970  20 20 20 20 20 20 20 20  5a 20 66 6c 61 67 20 20  |        Z flag  |
00000980  20 20 20 20 20 20 20 20  73 65 74 20 61 63 63 6f  |        set acco|
00000990  72 64 69 6e 67 20 74 6f  20 63 6f 6d 70 61 72 65  |rding to compare|
000009a0  2e 0d 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |..              |
000009b0  20 20 41 2c 58 2c 59 20  20 20 20 20 20 20 20 20  |  A,X,Y         |
000009c0  20 20 75 6e 64 65 66 69  6e 65 64 2e 0d 0d 0d 53  |  undefined....S|
000009d0  43 48 46 4c 44 0d 0d 53  43 48 46 4c 44 20 69 73  |CHFLD..SCHFLD is|
000009e0  20 75 73 65 64 20 74 6f  20 66 69 6e 64 20 74 68  | used to find th|
000009f0  65 20 6e 75 6d 62 65 72  20 6f 66 20 61 20 66 69  |e number of a fi|
00000a00  65 6c 64 2c 20 67 69 76  65 6e 20 69 74 73 20 6e  |eld, given its n|
00000a10  61 6d 65 2e 20 20 49 74  20 73 65 61 72 63 68 65  |ame.  It searche|
00000a20  73 0d 74 68 65 20 6c 69  73 74 20 6f 66 20 66 69  |s.the list of fi|
00000a30  65 6c 64 73 20 69 6e 20  74 68 65 20 66 6f 72 6d  |elds in the form|
00000a40  61 74 20 66 69 6c 65 20  75 6e 74 69 6c 20 69 74  |at file until it|
00000a50  20 66 69 6e 64 73 20 6f  6e 65 20 74 68 61 74 20  | finds one that |
00000a60  66 69 74 73 20 74 68 65  20 6e 61 6d 65 0d 67 69  |fits the name.gi|
00000a70  76 65 6e 2e 20 20 54 68  65 20 6e 61 6d 65 20 74  |ven.  The name t|
00000a80  68 61 74 20 79 6f 75 20  73 70 65 63 69 66 79 20  |hat you specify |
00000a90  63 61 6e 20 6f 62 74 61  69 6e 20 77 69 6c 64 20  |can obtain wild |
00000aa0  63 61 72 64 73 3a 20 74  68 65 20 73 69 6e 67 6c  |cards: the singl|
00000ab0  65 20 77 69 6c 64 63 61  72 64 0d 22 3f 22 2c 20  |e wildcard."?", |
00000ac0  61 6e 64 20 74 68 65 20  6d 75 6c 74 69 70 6c 65  |and the multiple|
00000ad0  20 77 69 6c 64 63 61 72  64 20 22 2a 22 20 61 72  | wildcard "*" ar|
00000ae0  65 20 62 6f 74 68 20 61  6c 6c 6f 77 65 64 2e 20  |e both allowed. |
00000af0  20 53 43 48 46 4c 44 20  77 69 6c 6c 20 61 6c 77  | SCHFLD will alw|
00000b00  61 79 73 0d 72 65 74 75  72 6e 20 74 68 65 20 66  |ays.return the f|
00000b10  69 72 73 74 20 66 69 65  6c 64 20 69 6e 20 74 68  |irst field in th|
00000b20  65 20 66 6f 72 6d 61 74  20 66 69 6c 65 20 74 68  |e format file th|
00000b30  61 74 20 66 69 74 73 20  74 68 65 20 6e 61 6d 65  |at fits the name|
00000b40  20 79 6f 75 20 68 61 76  65 20 67 69 76 65 6e 2e  | you have given.|
00000b50  20 0d 59 6f 75 20 63 61  6e 20 65 69 74 68 65 72  | .You can either|
00000b60  20 63 6f 6e 74 69 6e 75  65 20 73 65 61 72 63 68  | continue search|
00000b70  69 6e 67 20 66 6f 72 20  6d 6f 72 65 20 66 69 65  |ing for more fie|
00000b80  6c 64 73 20 62 79 20 75  73 69 6e 67 20 74 68 65  |lds by using the|
00000b90  20 53 43 48 46 4c 44 20  63 61 6c 6c 0d 64 65 73  | SCHFLD call.des|
00000ba0  63 72 69 62 65 64 20 6e  65 78 74 2e 0d 0d 54 68  |cribed next...Th|
00000bb0  65 20 6e 61 6d 65 20 6f  66 20 74 68 65 20 66 69  |e name of the fi|
00000bc0  65 6c 64 20 69 73 20 73  65 74 20 75 70 20 69 6e  |eld is set up in|
00000bd0  20 74 68 65 20 31 36 20  62 79 74 65 20 4c 57 4f  | the 16 byte LWO|
00000be0  52 4b 20 61 72 65 61 2e  20 20 49 74 20 73 68 6f  |RK area.  It sho|
00000bf0  75 6c 64 20 62 65 0d 74  65 72 6d 69 6e 61 74 65  |uld be.terminate|
00000c00  64 20 62 79 20 61 20 6e  75 6c 6c 2c 20 6f 72 20  |d by a null, or |
00000c10  61 6e 20 65 6e 64 20 6f  66 20 66 69 65 6c 64 20  |an end of field |
00000c20  6d 61 72 6b 65 72 2e 20  20 49 74 20 6d 75 73 74  |marker.  It must|
00000c30  20 6e 6f 74 20 62 65 20  6c 6f 6e 67 65 72 20 74  | not be longer t|
00000c40  68 65 6e 0d 31 36 20 62  79 74 65 73 2c 20 69 6e  |hen.16 bytes, in|
00000c50  63 6c 75 64 69 6e 67 20  74 68 65 20 64 65 6c 69  |cluding the deli|
00000c60  6d 69 74 65 72 2e 0d 0d  4f 6e 20 65 6e 74 72 79  |miter...On entry|
00000c70  3a 20 20 20 20 20 20 20  4c 57 4f 52 4b 20 20 20  |:       LWORK   |
00000c80  20 20 20 20 20 20 20 20  63 6f 6e 74 61 69 6e 73  |        contains|
00000c90  20 6e 61 6d 65 20 74 6f  20 73 65 61 72 63 68 20  | name to search |
00000ca0  66 6f 72 3b 20 6d 61 78  69 6d 75 6d 20 6f 66 20  |for; maximum of |
00000cb0  31 36 0d 20 20 20 20 20  20 20 20 20 20 20 20 20  |16.             |
00000cc0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000cd0  20 20 20 62 79 74 65 73  20 69 6e 63 6c 75 64 69  |   bytes includi|
00000ce0  6e 67 20 64 65 6c 69 6d  69 74 65 72 3b 20 64 65  |ng delimiter; de|
00000cf0  6c 69 6d 69 74 65 72 20  6e 75 6c 6c 0d 20 20 20  |limiter null.   |
00000d00  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000d10  20 20 20 20 20 20 20 20  20 20 20 20 20 6f 72 20  |             or |
00000d20  65 6e 64 20 6f 66 20 66  69 65 6c 64 20 6d 61 72  |end of field mar|
00000d30  6b 65 72 3b 20 77 69 6c  64 63 61 72 64 73 20 22  |ker; wildcards "|
00000d40  3f 22 20 61 6e 64 0d 20  20 20 20 20 20 20 20 20  |?" and.         |
00000d50  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000d60  20 20 20 20 20 20 20 22  2a 22 20 76 61 6c 69 64  |       "*" valid|
00000d70  2e 0d 0d 4f 6e 20 65 78  69 74 3a 20 20 20 20 20  |...On exit:     |
00000d80  20 20 20 43 53 20 20 20  20 20 20 20 20 20 20 20  |   CS           |
00000d90  20 20 20 6e 6f 20 66 69  65 6c 64 20 66 6f 75 6e  |   no field foun|
00000da0  64 20 74 6f 20 6d 61 74  63 68 20 74 68 65 20 6e  |d to match the n|
00000db0  61 6d 65 3b 20 41 20 68  61 73 0d 20 20 20 20 20  |ame; A has.     |
00000dc0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000dd0  20 20 20 20 20 20 20 20  20 20 20 65 72 72 6f 72  |           error|
00000de0  20 63 6f 64 65 2e 0d 20  20 20 20 20 20 20 20 20  | code..         |
00000df0  20 20 20 20 20 20 20 43  43 20 20 20 20 20 20 20  |       CC       |
00000e00  20 20 20 20 20 20 20 66  69 65 6c 64 20 66 6f 75  |       field fou|
00000e10  6e 64 20 4f 4b 3b 20 66  69 65 6c 64 20 6e 75 6d  |nd OK; field num|
00000e20  62 65 72 20 69 6e 20 58  2e 0d 0d 0d 53 43 48 46  |ber in X....SCHF|
00000e30  4c 4e 0d 0d 41 66 74 65  72 20 63 61 6c 6c 69 6e  |LN..After callin|
00000e40  67 20 53 43 48 46 4c 44  2c 20 79 6f 75 20 63 61  |g SCHFLD, you ca|
00000e50  6e 20 73 65 61 72 63 68  20 66 6f 72 20 6f 74 68  |n search for oth|
00000e60  65 72 20 66 69 65 6c 64  73 20 77 68 69 63 68 20  |er fields which |
00000e70  61 6c 73 6f 20 66 69 74  20 74 68 65 0d 66 69 65  |also fit the.fie|
00000e80  6c 64 20 73 70 65 63 69  66 69 63 61 74 69 6f 6e  |ld specification|
00000e90  20 74 68 61 74 20 79 6f  75 20 67 61 76 65 20 67  | that you gave g|
00000ea0  69 76 65 6e 2c 20 62 79  20 6d 61 6b 69 6e 67 20  |iven, by making |
00000eb0  72 65 70 65 61 74 65 64  20 63 61 6c 6c 73 20 74  |repeated calls t|
00000ec0  6f 20 53 43 48 46 4c 4e  2e 20 0d 42 65 66 6f 72  |o SCHFLN. .Befor|
00000ed0  65 20 79 6f 75 20 63 61  6c 6c 20 53 43 48 46 4c  |e you call SCHFL|
00000ee0  4e 2c 20 79 6f 75 20 6d  75 73 74 20 68 61 76 65  |N, you must have|
00000ef0  20 63 61 6c 6c 65 64 20  53 43 48 46 4c 44 20 66  | called SCHFLD f|
00000f00  69 72 73 74 2c 20 74 6f  20 73 74 61 72 74 20 74  |irst, to start t|
00000f10  68 65 0d 73 65 71 75 65  6e 63 65 2c 20 61 6e 64  |he.sequence, and|
00000f20  20 74 68 69 73 20 63 61  6c 6c 20 6d 75 73 74 20  | this call must |
00000f30  68 61 76 65 20 73 75 63  63 65 73 73 66 75 6c 6c  |have successfull|
00000f40  79 20 66 6f 75 6e 64 20  61 20 66 69 65 6c 64 2e  |y found a field.|
00000f50  0d 0d 59 6f 75 20 63 61  6e 20 6b 65 65 70 20 63  |..You can keep c|
00000f60  61 6c 6c 69 6e 67 20 53  43 48 46 4c 4e 20 75 6e  |alling SCHFLN un|
00000f70  74 69 6c 20 74 68 65 20  63 61 6c 6c 20 72 65 74  |til the call ret|
00000f80  75 72 6e 73 20 77 69 74  68 20 74 68 65 20 43 61  |urns with the Ca|
00000f90  72 72 79 20 66 6c 61 67  20 73 65 74 0d 74 6f 20  |rry flag set.to |
00000fa0  69 6e 64 69 63 61 74 65  20 74 68 61 74 20 69 74  |indicate that it|
00000fb0  20 68 61 73 20 66 6f 75  6e 64 20 6e 6f 20 6d 6f  | has found no mo|
00000fc0  72 65 20 66 69 65 6c 64  73 2e 0d 0d 4f 6e 20 65  |re fields...On e|
00000fd0  6e 74 72 79 3a 20 20 20  20 20 20 20 20 20 20 20  |ntry:           |
00000fe0  20 20 20 20 4d 75 73 74  20 68 61 76 65 20 63 61  |    Must have ca|
00000ff0  6c 6c 65 64 20 53 43 48  46 4c 44 20 66 69 72 73  |lled SCHFLD firs|
00001000  74 2c 20 61 6e 64 20 74  68 69 73 20 6d 75 73 74  |t, and this must|
00001010  20 68 61 76 65 0d 20 20  20 20 20 20 20 20 20 20  | have.          |
00001020  20 20 20 20 20 20 20 20  20 20 20 20 20 20 72 65  |              re|
00001030  74 75 72 6e 65 64 20 77  69 74 68 20 74 68 65 20  |turned with the |
00001040  43 61 72 72 79 20 66 6c  61 67 20 63 6c 65 61 72  |Carry flag clear|
00001050  2e 0d 20 20 20 20 20 20  20 20 20 20 20 41 20 20  |..           A  |
00001060  20 20 20 20 20 20 20 20  20 20 43 6f 6e 74 61 69  |          Contai|
00001070  6e 73 20 66 69 65 6c 64  20 6e 75 6d 62 65 72 20  |ns field number |
00001080  74 6f 20 73 74 61 72 74  20 73 65 61 72 63 68 69  |to start searchi|
00001090  6e 67 20 0d 20 20 20 20  20 20 20 20 20 20 20 20  |ng .            |
000010a0  20 20 20 20 20 20 20 20  20 20 20 20 66 72 6f 6d  |            from|
000010b0  2e 20 20 54 68 69 73 20  73 68 6f 75 6c 64 20 62  |.  This should b|
000010c0  65 20 6f 6e 65 20 6d 6f  72 65 20 74 68 61 6e 20  |e one more than |
000010d0  74 68 65 20 6c 61 73 74  20 76 61 6c 75 65 0d 20  |the last value. |
000010e0  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
000010f0  20 20 20 20 20 20 20 74  68 61 74 20 53 43 48 46  |       that SCHF|
00001100  4c 44 20 6f 72 20 53 43  48 46 4c 4e 20 72 65 74  |LD or SCHFLN ret|
00001110  75 72 6e 65 64 20 69 6e  20 58 2e 0d 0d 4f 6e 20  |urned in X...On |
00001120  65 78 69 74 3a 20 20 20  43 53 20 20 20 20 20 20  |exit:   CS      |
00001130  20 20 20 20 20 6e 6f 20  6d 6f 72 65 20 66 69 65  |     no more fie|
00001140  6c 64 73 20 66 6f 75 6e  64 3b 20 41 20 68 61 73  |lds found; A has|
00001150  20 65 72 72 6f 72 20 63  6f 64 65 20 20 28 72 65  | error code  (re|
00001160  70 6f 72 74 20 6f 6e 6c  79 0d 20 20 20 20 20 20  |port only.      |
00001170  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001180  20 20 69 66 20 72 65 71  75 69 72 65 64 29 2e 0d  |  if required)..|
00001190  20 20 20 20 20 20 20 20  20 20 20 43 43 20 20 20  |           CC   |
000011a0  20 20 20 20 20 20 20 20  66 69 65 6c 64 20 66 6f  |        field fo|
000011b0  75 6e 64 3b 20 66 69 65  6c 64 20 6e 75 6d 62 65  |und; field numbe|
000011c0  72 20 69 6e 20 58 2e 0d  0d 0d 47 45 54 57 49 44  |r in X....GETWID|
000011d0  0d 0d 47 45 54 57 49 44  20 72 65 74 75 72 6e 73  |..GETWID returns|
000011e0  20 74 68 65 20 64 69 73  70 6c 61 79 20 77 69 64  | the display wid|
000011f0  74 68 20 6f 66 20 61 20  66 69 65 6c 64 2c 20 61  |th of a field, a|
00001200  73 20 64 65 66 69 6e 65  64 20 69 6e 20 74 68 65  |s defined in the|
00001210  20 66 6f 72 6d 61 74 20  66 69 6c 65 2e 20 0d 49  | format file. .I|
00001220  66 20 74 68 65 72 65 20  69 73 20 6e 6f 20 64 69  |f there is no di|
00001230  73 70 6c 61 79 20 77 69  64 74 68 20 64 65 66 69  |splay width defi|
00001240  6e 65 64 2c 20 61 20 73  65 72 69 65 73 20 6f 66  |ned, a series of|
00001250  20 64 65 66 61 75 6c 74  73 20 63 6f 6d 65 73 20  | defaults comes |
00001260  69 6e 74 6f 0d 61 63 74  69 6f 6e 2e 0d 0d 44 69  |into.action...Di|
00001270  73 70 6c 61 79 20 77 69  64 74 68 20 64 65 66 69  |splay width defi|
00001280  6e 65 64 20 20 20 20 20  20 20 20 20 20 20 20 20  |ned             |
00001290  20 20 20 20 20 20 44 69  73 70 6c 61 79 20 77 69  |      Display wi|
000012a0  64 74 68 20 20 0d 4e 6f  20 64 69 73 70 6c 61 79  |dth  .No display|
000012b0  20 77 69 64 74 68 2c 20  53 68 65 65 74 20 6d 6f  | width, Sheet mo|
000012c0  64 65 20 20 20 20 20 20  20 20 20 20 20 20 31 38  |de            18|
000012d0  20 0d 4e 6f 20 64 69 73  70 6c 61 79 20 77 69 64  | .No display wid|
000012e0  74 68 2c 20 43 61 72 64  20 6d 6f 64 65 20 20 20  |th, Card mode   |
000012f0  20 20 20 20 20 20 20 20  20 20 30 20 0d 0d 4f 6e  |          0 ..On|
00001300  20 65 6e 74 72 79 3a 20  20 20 20 20 20 20 20 20  | entry:         |
00001310  20 20 20 20 20 20 58 20  20 20 20 20 20 20 20 20  |      X         |
00001320  20 20 20 20 20 20 63 6f  6e 74 61 69 6e 73 20 6e  |      contains n|
00001330  75 6d 62 65 72 20 6f 66  20 66 69 65 6c 64 20 66  |umber of field f|
00001340  6f 72 20 77 68 69 63 68  0d 20 20 20 20 20 20 20  |or which.       |
00001350  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00001370  20 77 69 64 74 68 20 69  73 20 72 65 71 75 69 72  | width is requir|
00001380  65 64 2e 0d 0d 4f 6e 20  65 78 69 74 3a 20 20 20  |ed...On exit:   |
00001390  20 20 20 20 20 20 20 20  20 20 20 20 20 43 53 20  |             CS |
000013a0  20 20 20 20 20 20 20 20  20 20 20 20 20 66 69 65  |             fie|
000013b0  6c 64 20 64 6f 65 73 6e  27 74 20 65 78 69 74 2e  |ld doesn't exit.|
000013c0  0d 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |.               |
000013d0  20 20 20 20 20 20 20 20  20 43 43 20 20 20 20 20  |         CC     |
000013e0  20 20 20 20 20 20 20 20  20 66 69 65 6c 64 20 66  |         field f|
000013f0  6f 75 6e 64 3b 20 41 20  68 61 73 20 64 69 73 70  |ound; A has disp|
00001400  6c 61 79 20 77 69 64 74  68 2e 0d 20 20 20 20 20  |lay width..     |
00001410  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001420  20 20 20 58 20 20 20 20  20 20 20 20 20 20 20 20  |   X            |
00001430  20 20 20 70 72 65 73 65  72 76 65 64 2e 0d 20 20  |   preserved..  |
00001440  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00001450  20 20 20 20 20 20 59 20  20 20 20 20 20 20 20 20  |      Y         |
00001460  20 20 20 20 20 20 75 6e  64 65 66 69 6e 65 64 2e  |      undefined.|
00001470  0d 0d                                             |..|
00001472
F/+HINT9.m0
F/+HINT9.m1
F/+HINT9.m2
F/+HINT9.m4
F/+HINT9.m5