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 / Dak2.lss < prev    next >
Text File  |  2005-07-07  |  8KB  |  198 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 Kirk Sigel 
  8. ; Modified July 2004 by Hugues Lacroix (added alternating flag for new venus controller)
  9. ;
  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. ;    Sections may be omitted, appear in any order, and occur more than once.
  27. ;  + Format lines must begin with a value indicating which variable
  28. ;    they want to access. The special code \00 indicates that no variable
  29. ;    is being requested. If a variable is requested it will be inserted where
  30. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  31. ;    specifier in lines requesting a variable and no other printf format
  32. ;    specifiers may appear. Remember, lines requesting a variable are used as
  33. ;    a printf format string and therefore must behave as such. Lines not 
  34. ;    requesting variables (code \00) can do whatever they want as these 
  35. ;    lines are not fed to a printf statement.
  36. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  37. ;    digit. Note that h must be lowercase.
  38. ;  + Format lines can have the following commands embedded in them.
  39. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  40. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  41. ;     \Ui\hh  Set the 'U' value to register[hh].
  42. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  43. ;     \Xi\hh  Set the 'X' value to register[hh].
  44. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  45. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  46. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  47. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  48. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  49. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  50. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  51. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  52. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  53. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  54. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  55. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  56. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  57. ;             next {X|<eol>} characters.
  58. ;              \U\00  IDS checksum.
  59. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  60. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  61. ;              \U\00  Binary little-endian (Intel byte order).
  62. ;              \U\01  Binary big-endian (Motorola byte order).
  63. ;              \U\02  ASCII text right justified space padded.
  64. ;              \U\03  ASCII text right justified zero padded.
  65. ;              \U\04  ASCII text left justified space padded.
  66. ;              \U\05  ASCII text left justified zero padded.
  67. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  68. ;              \U\00  ASCII text base 10.
  69. ;              \U\01  Binary little-endian (Intel byte order).
  70. ;              \U\02  Binary big-endian (Motorola byte order).
  71. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  72. ;              \P\00  Reverse characters.
  73. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  74. ;                       is the current character position on entry and the
  75. ;                       next character position on exit.
  76. ;              \P\02  Convert characters to Daktronics AllSport format.
  77. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  78. ;             before the cursor or until the string contains X characters.
  79. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  80. ;             at the cursor or until the string contains X characters.
  81. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  82. ;             contains X characters.
  83. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  84. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  85. ;             beginning of the line if zero).
  86. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  87. ;             end of the line if zero).
  88. ;    Note that numbers 0 thru 9 can be entered directly for single character
  89. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  90. ;    '\=\01' is the same as '\=1'.
  91. ;  + Be very careful about whitespace in each format line. Characters other
  92. ;    than '%s' specifiers and embedded commands and values will be sent
  93. ;    exactly as they appear on the line. This means, for instance, that using
  94. ;    tabs to make a line 'look right' in you favorite editor will cause
  95. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  96. ;    spaces (probably not what you wanted).
  97. ;
  98. ; The format lines follow.
  99.  
  100. ;;Initialization
  101. ; This is sent once to initialize the scoreboard.
  102. ; Line codes:
  103. ;  \00 No variable
  104.  
  105.  
  106. ;;TimeRunning
  107. ; This is sent approximately 10 times per second.
  108. ; Line codes:
  109. ;  \00  No variable
  110. ;  \01  Time
  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. \00\^1\&1\X\30\+1
  116. \01\0d\O10120  %12.12s\0d9
  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. \00\^1\&1\X\30\+1
  122. \01\0d\O10120  %12.12s\0d9
  123.  
  124. ;;TimeOfDay
  125. \00\^1\&1\X\30\+1
  126. \01\=0\0d\O10120     %12.12s\B4 \0d9
  127.  
  128. ;;ResultsHeader
  129. ; This is sent once each time the scoreboard is updated with results. It
  130. ; is sent before any result lines are sent.
  131. ; Line codes:
  132. ;  \00  No variable
  133. ;  \01  OFFICIAL/UNOFFICIAL string
  134. ;  \02  Event name
  135. ;  \03  Wind
  136. ;  \04  Event number
  137. ;  \05  Round number
  138. ;  \06  Heat number
  139. ;  \07  AUTO/MANUAL start type
  140. ;  \08  Number of participants
  141. ; Header
  142. \00\^1\&1\X\30\+1
  143. \00\0d\O10120\I2
  144. ; 12 spaces where the time goes plus 20 rfu spaces
  145. \00\I\20
  146. ; Official
  147. \01%-10.10s
  148. ; Event name
  149. \02%-36.36s
  150. ; Wind
  151. \03%-10.10s
  152. ; Event number
  153. \04%4.4s
  154. ; Round number
  155. \05%2.2s
  156. ; Heat number
  157. \06%3.3s
  158. ; Auto/Manual start
  159. \07%-6.6s
  160. ; Number of participants
  161. \08%2.2s
  162. ; 10 rfu spaces
  163. \00\I\0a
  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\0d9
  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. ; Register[0] is initialized with the index of the current result line and
  182. ; will range from 0 through <SCBPageSize-1>.
  183. ;
  184. ; Place
  185. \01%3.3s
  186. ; Lane
  187. \02%2.2s
  188. ; Id
  189. \03%4.4s
  190. ; Name
  191. \04%-30.30s
  192. ; Affiliation
  193. \05%-28.28s
  194. ; Time
  195. \06%11.11s
  196.  
  197.  
  198.