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_2x2.lss < prev    next >
Text File  |  2005-09-07  |  9KB  |  238 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 we 4 Gill boards (2 wide and 2 high)
  9. ; Board ID must be (from left to right) 01 & 02 for the top line and 03 & 04 for the bottom line
  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. \00\023
  120. \00    \R0\03\00
  121. \00\024
  122. \00    \R0\03\00
  123.  
  124. ;;TimeRunning
  125. ; This is sent approximately 10 times per second.
  126. ; Line codes:
  127. ;  \00  No variable
  128. ;  \01  Formatted time
  129. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  130. ; Setting register[0] to 1 in a format line will cause that line and
  131. ; subsequent lines to only be sent once per second (when the second's 
  132. ; digit changes) instead of approximately 10 times per second. Setting
  133. ; register[0] to 0 will resume normal operation for remaining lines.
  134. \00\021
  135. \01%12.12s\B5\L4\B3\R0\03\00
  136. \00\022
  137. \01%12.12s\B1\L4\B7\R0\03\00
  138. \00\023    \R0\03\00
  139. \00\024    \R0\03\00
  140.  
  141. ;;TimeStopped
  142. \00\021
  143. \01%12.12s\B5\L4\B3\R0\03\00
  144. \00\022
  145. \01%12.12s\B1\L4\B7\R0\03\00
  146. \00\023    \R0\03\00
  147. \00\024    \R0\03\00
  148.  
  149. ;;TimeOfDay
  150. ; This is sent when the 'Send time of day' option is checked in the
  151. ; Scoreboard pull down menu.
  152. ; Line codes are identical to the TimeRunning line codes.
  153. \00\021
  154. \01%12.12s\B8\R0\03\00
  155. \00\022
  156. \01%12.12s\B4\L4\B4\R0\03\00
  157. \00\023    \R0\03\00
  158. \00\024    \R0\03\00
  159.  
  160. ;;StartList
  161. ; This is sent once for each result line displayed on the scoreboard.
  162. ; Line codes:
  163. ;  \00  No variable
  164. ;  \01  Place
  165. ;  \02  Lane
  166. ;  \03  Id
  167. ;  \04  Name
  168. ;  \05  Affiliation
  169. ;  \06  Time
  170. ;  \07  Delta Time
  171. ;  \08  Cumulative Split Time
  172. ;  \09  Last Split Time
  173. ;  \0a  Laps To Go
  174. ;  \0b  License
  175. ;  \0c  ReacTime
  176. ;  \0d  Speed
  177. ;  \0e  Pace
  178. ;  \0f  Best Split Time
  179. ; Register[0] is initialized with the index of the current result line and
  180. ; will range from 0 through PageSize - 1.
  181. \00\021
  182. \02%-2.2s
  183. \04%6.6s\B4\03\00
  184. \00\022
  185. \04%6.6s\L0\R2\B2\R0\03\00
  186. \00\023
  187. \05%8.8s\B4\03\00
  188. \00\024
  189. \05%8.8s\L0\R4\B4\R0\03\00
  190.  
  191. ;;Result
  192. ; This is sent once for each result line displayed on the scoreboard.
  193. ; Line codes:
  194. ;  \00  No variable
  195. ;  \01  Place
  196. ;  \02  Lane
  197. ;  \03  Id
  198. ;  \04  Name
  199. ;  \05  Affiliation
  200. ;  \06  Time
  201. ;  \07  Delta Time
  202. ;  \08  Cumulative Split Time
  203. ;  \09  Last Split Time
  204. ;  \0a  Laps To Go
  205. ;  \0b  License
  206. ;  \0c  ReacTime
  207. ;  \0d  Speed
  208. ;  \0e  Pace
  209. ;  \0f  Best Split Time
  210. ; Register[0] is initialized with the index of the current result line and
  211. ; will range from 0 through PageSize - 1.
  212. \00\021
  213. \01%-2.2s
  214. \04%6.6s\B4\03\00
  215. \00\022
  216. \04%6.6s\L0\R2\B2\R0\03\00
  217. \00\023
  218. \06%9.9s\B5\03\00
  219. \00\024
  220. \06%9.9s\L0\R4\B4\R0\B1\03\00
  221.  
  222. ;;Message
  223. ; This is sent once for each message line displayed on the scoreboard.
  224. ; Line codes:
  225. ;  \00  No variable
  226. ;  \01  Text
  227. ; Register[0] is initialized with the index of the current message line and
  228. ; will range from 0 through <number of lines> - 1.
  229. \00\021
  230. \01%4.4s\R0\03\00
  231. \00\022
  232. \01%8.8s\L0\R4\B4\R0\03\00
  233. \00\023
  234. \01%12.12s\L0\R8\B8\R0\03\00
  235. \00\024
  236. \01%16.16s\L0\R6\R6\B6\B6\R0\03\00
  237.  
  238.