home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_01_06 / 1n06045a < prev    next >
Text File  |  1990-09-30  |  1KB  |  34 lines

  1.  
  2.  
  3. Figure 2: the binary file header (.BIN)
  4.  
  5. Bytes           Contents or Name        Explanation
  6.  
  7. Header, one for each BIN
  8.  
  9. 1-3             'BIO'                   Signature
  10. 4-7                                     Reserved
  11. 8-9             File length             Use assembly label
  12. 10              Number of routines in file
  13.  
  14. Routine Descriptor, one for each routine
  15.  
  16. 1-13            Routine name            Up to 12 characters, zero padded,
  17.                                         last byte must be zero
  18. 14-15           Offset to routine       Use assembly label
  19. 16              Func/Proc Switch        1 = returns value (function)
  20.                                         0 = no value returned (procedure)
  21. 17              Number of parameters in routine
  22.  
  23. Parameter Description, one for each parameter, follows Routine Descriptor
  24.  
  25. 1               Conversion Type         0 = string
  26.                                         1 = short or word (16 bits)
  27.                                         2 = long (32 bits)
  28.                                         3 = float
  29. 2-3             Offset                  Provided by Clarion
  30. 4-5             Segment                 Provided by Clarion
  31. 6-7             Length                  Provided by Clarion
  32.  
  33.  
  34.