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 / 1line.lss next >
Text File  |  2002-01-04  |  9KB  |  207 lines

  1. ; Defaults: 9600,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script
  4. ;
  5. ; Copyright (c) 1995-1997 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. ;\00\0d\0a*** Initialize the scoreboard ***\0d\0a
  104.  
  105. ;;TimeRunning
  106. ; This is sent approximately 10 times per second.
  107. ; Line codes:
  108. ;  \00  No variable
  109. ;  \01  Formatted time
  110. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  111. ; Setting register[0] to 1 in a format line will cause that line and
  112. ; subsequent lines to only be sent once per second (when the second's 
  113. ; digit changes) instead of approximately 10 times per second. Setting
  114. ; register[0] to 0 will resume normal operation for remaining lines.
  115. \01\=0\02015D0101     %12.12s\B4\L2\B1\L1\B4\R0  \03
  116. \00\02003C63\03
  117.  
  118. ;;TimeStopped
  119. ; This is sent when the time is stopped by a beam break.
  120. ; Line codes are identical to the TimeRunning line codes.
  121. \01\02015D0101     %12.12s\B1\L2\B1\L2\B1\L1\B4\R0\03
  122. \00\02003C63\03
  123.  
  124. ;;TimeGun
  125. ; This is sent when a gun signal is received.
  126. ; Line codes are identical to the TimeRunning line codes.
  127. \01\0d\0aGun time    : %12.12s\0d\0a
  128.  
  129. ;;TimeBreak
  130. ; This is sent when a beam break is recieved.
  131. ; Line codes are identical to the TimeRunning line codes.
  132. \01\0d\0aBreak time  : %12.12s\0d\0a
  133.  
  134. ;;TimeUpdate
  135. ; This is sent approximately 10 times per second.
  136. ; Line codes are identical to the TimeRunning line codes.
  137. \01\0dUpdate time : %12.12s
  138.  
  139. ;;Wind
  140. ; This is sent in the time stream when a wind reading is received.
  141. ; Line codes:
  142. ;  \00  No variable
  143. ;  \01  Formatted wind (same format as ResultsHeader wind)
  144. ;  \02  Binary wind in hundredths of units (as a 4 byte little endian integer)
  145. \01\0d\0aWind        : %12.12s\0d\0a
  146.  
  147. ;;TimeOfDay
  148. ; This is sent when the 'Send time of day' option is checked in the
  149. ; Scoreboard pull down menu.
  150. ; Line codes are identical to the TimeRunning line codes.
  151. \01\=0\02015D0101    %12.12s\B4\L2\B1\L2\B1\R0\03
  152. \00\02003C63\03
  153.  
  154. ;;ResultsHeader
  155. ; This is sent once each time the scoreboard is updated with results. It
  156. ; is sent before any result lines are sent.
  157. ; Line codes:
  158. ;  \00  No variable
  159. ;  \01  OFFICIAL/UNOFFICIAL string
  160. ;  \02  Event name
  161. ;  \03  Wind
  162. ;  \04  Event number
  163. ;  \05  Round number
  164. ;  \06  Heat number
  165. ;  \07  AUTO/MANUAL start type
  166. ;  \08  Number of participants
  167. ;\00*** Results Header ***\0d\0a
  168. ;\01OFFICIAL/UNOFFICIAL: %s\0d\0a
  169. ;\02Event name         : %s\0d\0a
  170. ;\03Wind               : %s\0d\0a
  171. ;\04Event number       : %s\0d\0a
  172. ;\05Round number       : %s\0d\0a
  173. ;\06Heat number        : %s\0d\0a
  174. ;\07AUTO/MANUAL start  : %s\0d\0a
  175. ;\08Number of results  : %s\0d\0a
  176. ;\00Plc Ln  Id  Name                 Affiliation          Time         Delta Time  \0d\0a
  177. ;\00--- --- --- -------------------- -------------------- ------------ ------------\0d\0a
  178.  
  179. ;;ResultsTrailer
  180. ; This is sent once each time the scoreboard is updated with results. It
  181. ; is sent after all result lines are sent.
  182. ; Line codes are identical to the ResultsHeader line codes.
  183. ;\00*** Results Trailer ***\0d\0a\0d\0a
  184. \00\02003C63\03
  185.  
  186. ;;Result
  187. ; This is sent once for each result line displayed on the scoreboard.
  188. ; Line codes:
  189. ;  \00  No variable
  190. ;  \01  Place
  191. ;  \02  Lane
  192. ;  \03  Id
  193. ;  \04  Name
  194. ;  \05  Affiliation
  195. ;  \06  Time
  196. ;  \07  Delta Time
  197. ; Register[0] is initialized with the index of the current result line and
  198. ; will range from 0 through PageSize - 1.
  199. \01\02007D0101%-1.1s \03
  200. ;\02%-3.3s 
  201. \03\02008D0103%-2.2s \03
  202. ;\04\02013D0103%-8.8s\03
  203. ;\05%-20.20s 
  204. \06\02010D0106%12.12s\B1\L2\B1\L2\B1\L1\B4\R0\03
  205. ;\07%-12.12s
  206. ;\00\0d\0a
  207.