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 / Gill_2x1.lss < prev    next >
Text File  |  2005-09-07  |  9KB  |  226 lines

  1. ; Defaults: 9600,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script
  4. ;
  5. ; Copyright (c) 1995-2005 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Hugues Lacroix
  8. ; For use with 2 Gill boards side by side
  9. ; Board ID must be (from left to right) 01 & 02
  10. ;
  11. ; Notes:
  12. ;  + Empty lines and lines that start with a semicolon are ignored.
  13. ;  + Lines that start with two semicolons indicate a section header.
  14. ;    They must be one of the following:
  15. ;      ;;Initialization
  16. ;      ;;TimeRunning
  17. ;      ;;TimeStopped
  18. ;      ;;TimeGun
  19. ;      ;;TimeBreak
  20. ;      ;;TimeUpdate
  21. ;      ;;Wind
  22. ;      ;;TimeOfDay
  23. ;      ;;ResultsHeader
  24. ;      ;;ResultsTrailer
  25. ;      ;;Result
  26. ;      ;;StartListHeader
  27. ;      ;;StartListTrailer
  28. ;      ;;StartList
  29. ;      ;;MessageHeader
  30. ;      ;;MessageTrailer
  31. ;      ;;Message
  32. ;    Sections may be omitted, appear in any order, and occur more than once.
  33. ;  + Format lines must begin with a value indicating which variable
  34. ;    they want to access. The special code \00 indicates that no variable
  35. ;    is being requested. If a variable is requested it will be inserted where
  36. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  37. ;    specifier in lines requesting a variable and no other printf format
  38. ;    specifiers may appear. Remember, lines requesting a variable are used as
  39. ;    a printf format string and therefore must behave as such. Lines not 
  40. ;    requesting variables (code \00) can do whatever they want as these 
  41. ;    lines are not fed to a printf statement.
  42. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  43. ;    digit. Note that h must be lowercase.
  44. ;  + Format lines can have the following commands embedded in them.
  45. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  46. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  47. ;     \Ui\hh  Set the 'U' value to register[hh].
  48. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  49. ;     \Xi\hh  Set the 'X' value to register[hh].
  50. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  51. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  52. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  53. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  54. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  55. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  56. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  57. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  58. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  59. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  60. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  61. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  62. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  63. ;             next {X|<eol>} characters.
  64. ;              \U\00  IDS checksum.
  65. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  66. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  67. ;              \U\03  CRC-16. register[hh] is used as the seed value
  68. ;                       and register[hh+1] is the polynomial.
  69. ;              \U\04  CRC-32. register[hh] is used as the seed value
  70. ;                       and register[hh+1] is the polynomial.
  71. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  72. ;              \U\00  Binary little-endian (Intel byte order).
  73. ;              \U\01  Binary big-endian (Motorola byte order).
  74. ;              \U\02  ASCII text right justified space padded.
  75. ;              \U\03  ASCII text right justified zero padded.
  76. ;              \U\04  ASCII text left justified space padded.
  77. ;              \U\05  ASCII text left justified zero padded.
  78. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  79. ;              \U\00  ASCII text base 10.
  80. ;              \U\01  Binary little-endian (Intel byte order).
  81. ;              \U\02  Binary big-endian (Motorola byte order).
  82. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  83. ;              \P\00  Reverse characters.
  84. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  85. ;                       is the current character position on entry and the
  86. ;                       next character position on exit.
  87. ;              \P\02  Convert characters to Daktronics AllSport format.
  88. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  89. ;             before the cursor or until the string contains X characters.
  90. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  91. ;             at the cursor or until the string contains X characters.
  92. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  93. ;             contains X characters.
  94. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  95. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  96. ;             beginning of the line if zero).
  97. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  98. ;             end of the line if zero).
  99. ;    Note that numbers 0 thru 9 can be entered directly for single character
  100. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  101. ;    '\=\01' is the same as '\=1'.
  102. ;  + Be very careful about whitespace in each format line. Characters other
  103. ;    than '%s' specifiers and embedded commands and values will be sent
  104. ;    exactly as they appear on the line. This means, for instance, that using
  105. ;    tabs to make a line 'look right' in your favorite editor will cause
  106. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  107. ;    spaces (probably not what you wanted).
  108. ;
  109. ; The format lines follow.
  110.  
  111. ;;Initialization
  112. ; This is sent once to initialize the scoreboard.
  113. ; Line codes:
  114. ;  \00 No variable
  115. \00\021
  116. \00    \R0\03\00
  117. \00\022
  118. \00    \R0\03\00
  119.  
  120. ;;TimeRunning
  121. ; This is sent approximately 10 times per second.
  122. ; Line codes:
  123. ;  \00  No variable
  124. ;  \01  Formatted time
  125. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  126. ; Setting register[0] to 1 in a format line will cause that line and
  127. ; subsequent lines to only be sent once per second (when the second's 
  128. ; digit changes) instead of approximately 10 times per second. Setting
  129. ; register[0] to 0 will resume normal operation for remaining lines.
  130. \00\021
  131. \01%12.12s\B5\L4\B3\R0\03\00
  132. \00\022
  133. \01%12.12s\B1\L4\B7\R0\03\00
  134.  
  135. ;;TimeStopped
  136. \00\021
  137. \01%12.12s\B5\L4\B3\R0\03\00
  138. \00\022
  139. \01%12.12s\B1\L4\B7\R0\03\00
  140.  
  141. ;;TimeOfDay
  142. ; This is sent when the 'Send time of day' option is checked in the
  143. ; Scoreboard pull down menu.
  144. ; Line codes are identical to the TimeRunning line codes.
  145. \00\021
  146. \01%12.12s\B8\R0\03\00
  147. \00\022
  148. \01%12.12s\B4\L4\B4\R0\03\00
  149.  
  150. ;;Result[1]
  151. ; This is sent once for each result line displayed on the scoreboard.
  152. ; Line codes:
  153. ;  \00  No variable
  154. ;  \01  Place
  155. ;  \02  Lane
  156. ;  \03  Id
  157. ;  \04  Name
  158. ;  \05  Affiliation
  159. ;  \06  Time
  160. ;  \07  Delta Time
  161. ;  \08  Cumulative Split Time
  162. ;  \09  Last Split Time
  163. ;  \0a  Laps To Go
  164. ;  \0b  License
  165. ;  \0c  ReacTime
  166. ;  \0d  Speed
  167. ;  \0e  Pace
  168. ;  \0f  Best Split Time
  169. ; Register[0] is initialized with the index of the current result line and
  170. ; will range from 0 through PageSize - 1.
  171.  
  172. ; Page 1 includes Place (2) and Name (6) to board ID 01 and 02
  173. \00\021
  174. \01%-2.2s
  175. \04%6.6s\B4\03\00
  176. \00\022
  177. \04%6.6s\L0\R2\B2\R0\03\00
  178.  
  179. ;;Result[2]
  180. ; This is sent once for each result line displayed on the scoreboard.
  181. ; Line codes:
  182. ;  \00  No variable
  183. ;  \01  Place
  184. ;  \02  Lane
  185. ;  \03  Id
  186. ;  \04  Name
  187. ;  \05  Affiliation
  188. ;  \06  Time
  189. ;  \07  Delta Time
  190. ;  \08  Cumulative Split Time
  191. ;  \09  Last Split Time
  192. ;  \0a  Laps To Go
  193. ;  \0b  License
  194. ;  \0c  ReacTime
  195. ;  \0d  Speed
  196. ;  \0e  Pace
  197. ;  \0f  Best Split Time
  198. ; Register[0] is initialized with the index of the current result line and
  199. ; will range from 0 through PageSize - 1.
  200.  
  201. ; Page 2 includes the time field (mm:ss.dd) to board ID 01 and 02
  202. ;(full digit ".")
  203. \00\021
  204. \06%9.9s\B5\03\00
  205. \00\022
  206. \06%9.9s\L0\R4\B4\R0\B1\03\00
  207.  
  208. ;(built in ".")
  209. ;\00\021 
  210. ;\06%9.9s\B6\03\00
  211. ;\00\022
  212. ;\06%9.9s\L0\R3\B3\R3\B1\R0\B1\03\02
  213.  
  214. ;;Message
  215. ; This is sent once for each message line displayed on the scoreboard.
  216. ; Line codes:
  217. ;  \00  No variable
  218. ;  \01  Text
  219. ; Register[0] is initialized with the index of the current message line and
  220. ; will range from 0 through <number of lines> - 1.
  221. \00\021
  222. \01%4.4s\R0\03\00
  223. \00\022
  224. \01%8.8s\L0\R4\B4\R0\03\00
  225.  
  226.