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 / TAG_HL985.lss < prev    next >
Text File  |  2010-07-16  |  11KB  |  270 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 Jeff Feeney (this script will send running time, time of day and
  8. ; Results to 2 displays connected to form an 8 digit single line display.
  9. ; Results are Place and Name on line 1 and Mark/Time on line 2).
  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. \01\02\31\33\I8\I2\R0\0a
  116.  
  117. ;;TimeRunning
  118. ; This is sent approximately 10 times per second.
  119. ; Line codes:
  120. ;  \00  No variable
  121. ;  \01  Formatted time
  122. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  123. ; Setting register[0] to 1 in a format line will cause that line and
  124. ; subsequent lines to only be sent once per second (when the second's 
  125. ; digit changes) instead of approximately 10 times per second. Setting
  126. ; register[0] to 0 will resume normal operation for remaining lines.
  127. \01\02\31\33%12.12s\B1\L8\B3\R0\0a
  128.  
  129. ;;TimeStopped
  130. ; This is sent when the time is stopped by a beam break.
  131. ; Line codes are identical to the TimeRunning line codes.
  132. \01\02\31\33%12.12s\B1\L8\B3\R0\0a
  133.  
  134. ;;TimeGun
  135. ; This is sent when a gun signal is received.
  136. ; Line codes are identical to the TimeRunning line codes.
  137. ;\01\0d\0aGun time    : %12.12s\0d\0a
  138.  
  139. ;;TimeBreak
  140. ; This is sent when a beam break is received.
  141. ; Line codes are identical to the TimeRunning line codes.
  142. ;\01\0d\0aBreak time  : %12.12s\0d\0a
  143.  
  144. ;;TimeUpdate
  145. ; This is sent approximately 10 times per second.
  146. ; Line codes are identical to the TimeRunning line codes.
  147. ;\01\0dUpdate time : %12.12s
  148.  
  149. ;;Wind
  150. ; This is sent in the time stream when a wind reading is received.
  151. ; Line codes:
  152. ;  \00  No variable
  153. ;  \01  Formatted wind (same format as ResultsHeader wind)
  154. ;  \02  Binary wind in hundredths of units (as a 4 byte little endian integer)
  155. ;\01\0d\0aWind        : %12.12s\0d\0a
  156.  
  157. ;;TimeOfDay
  158. ; This is sent when the 'Send time of day' option is checked in the
  159. ; Scoreboard pull down menu.
  160. ; Line codes are identical to the TimeRunning line codes.
  161. \01\02\31\33%12.12s\B4\0a
  162.  
  163. ;;ResultsHeader
  164. ; This is sent once each time the scoreboard is updated with results. It
  165. ; is sent before any result lines are sent.
  166. ; Line codes:
  167. ;  \00  No variable
  168. ;  \01  OFFICIAL/UNOFFICIAL string
  169. ;  \02  Event name
  170. ;  \03  Wind
  171. ;  \04  Event number
  172. ;  \05  Round number
  173. ;  \06  Heat number
  174. ;  \07  AUTO/MANUAL start type
  175. ;  \08  Number of participants
  176. ;\00*** Results Header ***\0d\0a
  177. ;\01OFFICIAL/UNOFFICIAL: %s\0d\0a
  178. ;\02Event name         : %s\0d\0a
  179. ;\03Wind               : %s\0d\0a
  180. ;\04Event number       : %s\0d\0a
  181. ;\05Round number       : %s\0d\0a
  182. ;\06Heat number        : %s\0d\0a
  183. ;\07AUTO/MANUAL start  : %s\0d\0a
  184. ;\08Number of results  : %s\0d\0a
  185. ;\00Plc Ln  Id  Name       Affil      Time     Delta    ReacTime Cum ST   Last ST  Laps  \0d\0a
  186. ;\00--- --- --- ---------- ---------- -------- -------- -------- -------- -------- ------\0d\0a
  187.  
  188. ;;ResultsTrailer
  189. ; This is sent once each time the scoreboard is updated with results. It
  190. ; is sent after all result lines are sent.
  191. ; Line codes are identical to the ResultsHeader line codes.
  192. ;\00*** Results Trailer ***\0d\0a\0d\0a
  193.  
  194. ;;Result[1]
  195. ; This is sent once for each result line displayed on the scoreboard.
  196. ; Line codes:
  197. ;  \00  No variable
  198. ;  \01  Place
  199. ;  \02  Lane
  200. ;  \03  Id
  201. ;  \04  Name
  202. ;  \05  Affiliation
  203. ;  \06  Time
  204. ;  \07  Delta Time
  205. ;  \08  Cumulative Split Time
  206. ;  \09  Last Split Time
  207. ;  \0a  Laps To Go
  208. ;  \0b  License
  209. ;  \0c  ReacTime
  210. ;  \0d  Speed
  211. ;  \0e  Pace
  212. ; Register[0] is initialized with the index of the current result line and
  213. ; will range from 0 through PageSize - 1.
  214. ;
  215. ; Horizontal Page 1 - Place and Name
  216. \01\02\31\33%-2.2s
  217. \04%-6.6s\0a
  218. ;\03%4.4s\0a
  219. ;\02%-2.2s\L0\U2\F2\R0
  220. ;\04%7.7s\L0\U2\F2\R0
  221. ;\04%7.7s\I9\L0\U2\F2\R0
  222.  
  223. ;;Result[2]
  224. ; This is sent once for each result line displayed on the scoreboard.
  225. ; Line codes:
  226. ;  \00  No variable
  227. ;  \01  Place
  228. ;  \02  Lane
  229. ;  \03  Id
  230. ;  \04  Name
  231. ;  \05  Affiliation
  232. ;  \06  Time
  233. ;  \07  Delta Time
  234. ;  \08  Cumulative Split Time
  235. ;  \09  Last Split Time
  236. ;  \0a  Laps To Go
  237. ;  \0b  License
  238. ;  \0c  ReacTime
  239. ;  \0d  Speed
  240. ;  \0e  Pace
  241. ; Register[0] is initialized with the index of the current result line and
  242. ; will range from 0 through PageSize - 1.
  243. ;
  244. ; Horizontal Page 2 - Time
  245. \06\02\31\33%12.12s\B1\L8\B3\R0\0a
  246.  
  247.  
  248. ;;MessageHeader
  249. ; This is sent once each time the scoreboard is updated with the message. It
  250. ; is sent before any message lines are sent.
  251. ; Line codes:
  252. ;  \00  No variable
  253. ;\00Message Header\0d\0a
  254.  
  255. ;;MessageTrailer
  256. ; This is sent once each time the scoreboard is updated with the message. It
  257. ; is sent after all message lines are sent.
  258. ; Line codes are identical to the MessageHeader line codes.
  259. ;\00Message Trailer\0d\0a
  260.  
  261. ;;Message
  262. ; This is sent once for each message line displayed on the scoreboard.
  263. ; Line codes:
  264. ;  \00  No variable
  265. ;  \01  Text
  266. ; Register[0] is initialized with the index of the current message line and
  267. ; will range from 0 through <number of lines> - 1.
  268.  
  269.  
  270.