home *** CD-ROM | disk | FTP | other *** search
/ boe.pres.k12.wv.us / boe.pres.k12.wv.us.zip / boe.pres.k12.wv.us / Utilities / Finishlynx / FinishLynx-8.00.exe / RT-100.lss < prev    next >
Text File  |  2002-01-04  |  8KB  |  190 lines

  1. ; Defaults: 9600,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script
  4. ;
  5. ; Copyright (c) 1998 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Kirk Sigel
  8. ;
  9. ; Notes:
  10. ;  + Empty lines and lines that start with a semicolon are ignored.
  11. ;  + Lines that start with two semicolons indicate a section header.
  12. ;    They must be one of the following:
  13. ;      ;;Initialization
  14. ;      ;;TimeRunning
  15. ;      ;;TimeStopped
  16. ;      ;;TimeGun
  17. ;      ;;TimeBreak
  18. ;      ;;TimeUpdate
  19. ;      ;;Wind
  20. ;      ;;TimeOfDay
  21. ;      ;;ResultsHeader
  22. ;      ;;ResultsTrailer
  23. ;      ;;Result
  24. ;    Sections may be omitted, appear in any order, and occur more than once.
  25. ;  + Format lines must begin with a value indicating which variable
  26. ;    they want to access. The special code \00 indicates that no variable
  27. ;    is being requested. If a variable is requested it will be inserted where
  28. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  29. ;    specifier in lines requesting a variable and no other printf format
  30. ;    specifiers may appear. Remember, lines requesting a variable are used as
  31. ;    a printf format string and therefore must behave as such. Lines not 
  32. ;    requesting variables (code \00) can do whatever they want as these 
  33. ;    lines are not fed to a printf statement.
  34. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  35. ;    digit. Note that h must be lowercase.
  36. ;  + Format lines can have the following commands embedded in them.
  37. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  38. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  39. ;     \Ui\hh  Set the 'U' value to register[hh].
  40. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  41. ;     \Xi\hh  Set the 'X' value to register[hh].
  42. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  43. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  44. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  45. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  46. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  47. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  48. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  49. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  50. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  51. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  52. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  53. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  54. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  55. ;             next {X|<eol>} characters.
  56. ;              \U\00  IDS checksum.
  57. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  58. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  59. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  60. ;              \U\00  Binary little-endian (Intel byte order).
  61. ;              \U\01  Binary big-endian (Motorola byte order).
  62. ;              \U\02  ASCII text right justified space padded.
  63. ;              \U\03  ASCII text right justified zero padded.
  64. ;              \U\04  ASCII text left justified space padded.
  65. ;              \U\05  ASCII text left justified zero padded.
  66. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  67. ;              \U\00  ASCII text base 10.
  68. ;              \U\01  Binary little-endian (Intel byte order).
  69. ;              \U\02  Binary big-endian (Motorola byte order).
  70. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  71. ;              \P\00  Reverse characters.
  72. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  73. ;                       is the current character position on entry and the
  74. ;                       next character position on exit.
  75. ;              \P\02  Convert characters to Daktronics AllSport format.
  76. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  77. ;             before the cursor or until the string contains X characters.
  78. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  79. ;             at the cursor or until the string contains X characters.
  80. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  81. ;             contains X characters.
  82. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  83. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  84. ;             beginning of the line if zero).
  85. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  86. ;             end of the line if zero).
  87. ;    Note that numbers 0 thru 9 can be entered directly for single character
  88. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  89. ;    '\=\01' is the same as '\=1'.
  90. ;  + Be very careful about whitespace in each format line. Characters other
  91. ;    than '%s' specifiers and embedded commands and values will be sent
  92. ;    exactly as they appear on the line. This means, for instance, that using
  93. ;    tabs to make a line 'look right' in you favorite editor will cause
  94. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  95. ;    spaces (probably not what you wanted).
  96. ;
  97. ; The format lines follow.
  98.  
  99. ;;Initialization
  100. ; This is sent once to initialize the scoreboard.
  101. ; Line codes:
  102. ;  \00 No variable
  103.  
  104. ;;TimeRunning
  105. ; This is sent approximately 10 times per second.
  106. ; Line codes:
  107. ;  \00  No variable
  108. ;  \01  Formatted time
  109. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  110. ; Setting register[0] to 1 in a format line will cause that line and
  111. ; subsequent lines to only be sent once per second (when the second's 
  112. ; digit changes) instead of approximately 10 times per second. Setting
  113. ; register[0] to 0 will resume normal operation for remaining lines.
  114. \01\02\58\30     %12.12s\B2  \0d\03
  115.  
  116. ;;TimeStopped
  117. ; This is sent when the time is stopped by a beam break.
  118. ; Line codes are identical to the TimeRunning line codes.
  119. \01\02\58\30     %12.12s\0d\03
  120.  
  121. ;;TimeGun
  122. ; This is sent when a gun signal is received.
  123. ; Line codes are identical to the TimeRunning line codes.
  124.  
  125. ;;TimeBreak
  126. ; This is sent when a beam break is recieved.
  127. ; Line codes are identical to the TimeRunning line codes.
  128.  
  129. ;;TimeUpdate
  130. ; This is sent approximately 10 times per second.
  131. ; Line codes are identical to the TimeRunning line codes.
  132.  
  133. ;;Wind
  134. ; This is sent in the time stream when a wind reading is received.
  135. ; Line codes:
  136. ;  \00  No variable
  137. ;  \01  Formatted wind (same format as ResultsHeader wind)
  138. ;  \02  Binary wind in hundredths of units (as a 4 byte little endian integer)
  139.  
  140. ;;TimeOfDay
  141. ; This is sent when the 'Send time of day' option is checked in the
  142. ; Scoreboard pull down menu.
  143. ; Line codes are identical to the TimeRunning line codes.
  144. \01\02\58\30     %12.12s\B4    \0d\03
  145.  
  146. ;;ResultsHeader
  147. ; This is sent once each time the scoreboard is updated with results. It
  148. ; is sent before any result lines are sent.
  149. ; Line codes:
  150. ;  \00  No variable
  151. ;  \01  OFFICIAL/UNOFFICIAL string
  152. ;  \02  Event name
  153. ;  \03  Wind
  154. ;  \04  Event number
  155. ;  \05  Round number
  156. ;  \06  Heat number
  157. ;  \07  AUTO/MANUAL start type
  158. ;  \08  Number of participants
  159. ;
  160. ; The last character can be space, G, P, C, or R. C means that the
  161. ; next 4 characters are the athlete's number. I don't know what
  162. ; the other characters mean.
  163. ;\00\02\32   \30
  164.  
  165. ;;ResultsTrailer
  166. ; This is sent once each time the scoreboard is updated with results. It
  167. ; is sent after all result lines are sent.
  168. ; Line codes are identical to the ResultsHeader line codes.
  169. ;\00   \03
  170.  
  171. ;;Result
  172. ; This is sent once for each result line displayed on the scoreboard.
  173. ; Line codes:
  174. ;  \00  No variable
  175. ;  \01  Place
  176. ;  \02  Lane
  177. ;  \03  Id
  178. ;  \04  Name
  179. ;  \05  Affiliation
  180. ;  \06  Time
  181. ;  \07  Delta Time
  182. ; Register[0] is initialized with the index of the current result line and
  183. ; will range from 0 through PageSize - 1.
  184. \00\02\32   \30
  185. \02%2.2s
  186. \03%4.4s
  187. \01%4.4s
  188. \06%12.12s
  189. \00   \03
  190.