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 / XCScore.lss < prev    next >
Text File  |  2004-09-28  |  11KB  |  323 lines

  1. ; Defaults: 9600,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script Version 2.0
  4. ;
  5. ; Copyright (c) 1995-2004 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Kirk Sigel
  8. ;
  9. ; Modified by Hugues Lacroix 12/08/04
  10. ;
  11. ; Notes:
  12. ;  + Empty lines and lines that start with a semicolon are ignored.
  13. ;
  14. ;  + Lines that start with two semicolons indicate a section header.
  15. ;    The current section headers and their valid group codes are:
  16. ;      ;;Initialization
  17. ;        \10 \13 \17
  18. ;      ;;TimeRunning
  19. ;      ;;TimeStopped
  20. ;      ;;TimeGun
  21. ;      ;;TimeBreak
  22. ;      ;;TimeUpdate
  23. ;      ;;TimeOfDay
  24. ;        \11 \13 \17
  25. ;      ;;Wind
  26. ;        \12 \13 \17
  27. ;      ;;ResultsHeader
  28. ;      ;;ResultsTrailer
  29. ;      ;;StartListHeader
  30. ;      ;;StartListTrailer
  31. ;        \13 \17
  32. ;      ;;Result
  33. ;      ;;StartList
  34. ;        \13 \14 \17
  35. ;      ;;MessageHeader
  36. ;      ;;MessageTrailer
  37. ;        \13 \15 \17
  38. ;      ;;Message
  39. ;        \13 \15 \16 \17
  40. ;    Sections may be omitted, appear in any order, and occur more than once.
  41. ;
  42. ;  + Format lines must begin with a one byte group code and a one byte
  43. ;    variable code. The special variable code \00 indicates that no variable
  44. ;    is being requested. If a variable is requested it will be inserted where
  45. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  46. ;    specifier in lines requesting a variable and no other printf format
  47. ;    specifiers may appear. Remember, lines requesting a variable are used as
  48. ;    a printf format string and therefore must behave as such. Lines not 
  49. ;    requesting a variable (variable code \00) can do whatever they want as
  50. ;    these lines are not fed to a printf statement.
  51. ;    The current group codes and their variable codes are:
  52. ;      \10  Initialize
  53. ;         \00  No variable
  54. ;      \11  Time
  55. ;         \00  No variable
  56. ;         \01  Formatted time
  57. ;         \02  Binary time in milliseconds (4 byte little endian integer)
  58. ;      \12  Wind
  59. ;         \00  No variable
  60. ;         \01  Formatted wind
  61. ;         \02  Binary wind in hundredths of units (4 byte little endian integer)
  62. ;      \13  Results Header/Trailer
  63. ;         \00  No variable
  64. ;         \01  OFFICIAL/UNOFFICIAL string
  65. ;         \02  Event name
  66. ;         \03  Wind
  67. ;         \04  Event number
  68. ;         \05  Round number
  69. ;         \06  Heat number
  70. ;         \07  AUTO/MANUAL start type
  71. ;         \08  Number of participants
  72. ;      \14  Result
  73. ;         \00  No variable
  74. ;         \01  Place
  75. ;         \02  Lane
  76. ;         \03  Id
  77. ;         \04  Name
  78. ;         \05  Affiliation
  79. ;         \06  Time
  80. ;         \07  Delta Time
  81. ;         \08  Cumulative Split Time
  82. ;         \09  Last Split Time
  83. ;         \0a  Laps To Go
  84. ;         \0b  License
  85. ;         \0c  ReacTime
  86. ;         \0d  Speed
  87. ;         \0e  Pace
  88. ;         \0f  Best Split Time
  89. ;      \15  Message Header/Trailer
  90. ;         \00  No variable
  91. ;      \16  Message
  92. ;         \00  No variable
  93. ;         \01  Text
  94. ;      \17  Break Time
  95. ;         \00  No variable
  96. ;         \nn  Formatted break time nn
  97. ;
  98. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  99. ;    digit. Note that h must be lowercase.
  100. ;
  101. ;  + Format lines can have the following commands embedded in them.
  102. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  103. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  104. ;     \Ui\hh  Set the 'U' value to register[hh].
  105. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  106. ;     \Xi\hh  Set the 'X' value to register[hh].
  107. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  108. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  109. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  110. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  111. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  112. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  113. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  114. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  115. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  116. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  117. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  118. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  119. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  120. ;             next {X|<eol>} characters.
  121. ;              \U\00  IDS checksum.
  122. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  123. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  124. ;              \U\03  CRC-16. register[hh] is used as the seed value
  125. ;                       and register[hh+1] is the polynomial.
  126. ;              \U\04  CRC-32. register[hh] is used as the seed value
  127. ;                       and register[hh+1] is the polynomial.
  128. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  129. ;              \U\00  Binary little-endian (Intel byte order).
  130. ;              \U\01  Binary big-endian (Motorola byte order).
  131. ;              \U\02  ASCII text right justified space padded.
  132. ;              \U\03  ASCII text right justified zero padded.
  133. ;              \U\04  ASCII text left justified space padded.
  134. ;              \U\05  ASCII text left justified zero padded.
  135. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  136. ;              \U\00  ASCII text base 10.
  137. ;              \U\01  Binary little-endian (Intel byte order).
  138. ;              \U\02  Binary big-endian (Motorola byte order).
  139. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  140. ;              \P\00  Reverse characters.
  141. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  142. ;                       is the current character position on entry and the
  143. ;                       next character position on exit.
  144. ;              \P\02  Convert characters to Daktronics AllSport format.
  145. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  146. ;             before the cursor or until the string contains X characters.
  147. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  148. ;             at the cursor or until the string contains X characters.
  149. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  150. ;             contains X characters.
  151. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  152. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  153. ;             beginning of the line if zero).
  154. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  155. ;             end of the line if zero).
  156. ;    Note that numbers 0 thru 9 can be entered directly for single character
  157. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  158. ;    '\=\01' is the same as '\=1'.
  159. ;
  160. ;  + Be very careful about whitespace in each format line. Characters other
  161. ;    than '%s' specifiers and embedded commands and values will be sent
  162. ;    exactly as they appear on the line. This means, for instance, that using
  163. ;    tabs to make a line 'look right' in you favorite editor will cause
  164. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  165. ;    spaces (probably not what you wanted).
  166. ;
  167. ; The format lines follow.
  168.  
  169. ;;StartListHeader
  170. ; This is sent once each time the scoreboard is updated with results. It
  171. ; is sent before any result lines are sent.
  172. ; Line codes:
  173. ;  \00  No variable
  174. ;  \01  OFFICIAL/UNOFFICIAL string
  175. ;  \02  Event name
  176. ;  \03  Wind
  177. ;  \04  Event number
  178. ;  \05  Round number
  179. ;  \06  Heat number
  180. ;  \07  AUTO/MANUAL start type
  181. ;  \08  Number of participants
  182. \13\00\01R\02
  183. ;\13\01%s\05
  184. \13\02%s\05
  185. ;\13\03%s\05
  186. \13\04%s\05
  187. \13\05%s\05
  188. \13\06%s\05
  189. ;\13\07%s\05
  190. \13\08%s\05
  191.  
  192. ;;StartListTrailer
  193. ; This is sent once each time the scoreboard is updated with results. It
  194. ; is sent after all result lines are sent.
  195. ; Line codes are identical to the ResultsHeader line codes.
  196. \13\00\03\04
  197.  
  198. ;;StartList
  199. ; This is sent once for each result line displayed on the scoreboard.
  200. ; Line codes:
  201. ;  \00  No variable
  202. ;  \01  Place
  203. ;  \02  Lane
  204. ;  \03  Id
  205. ;  \04  Name
  206. ;  \05  Affiliation
  207. ;  \06  Time
  208. ;  \07  Delta Time
  209. ;  \08  Cumulative Split Time
  210. ;  \09  Last Split Time
  211. ;  \0a  Laps To Go
  212. ;  \0b  License
  213. ;  \0c  ReacTime
  214. ;  \0d  Speed
  215. ;  \0e  Pace
  216. ;  \0f  Best Split Time
  217. ; Register[0] is initialized with the index of the current result line and
  218. ; will range from 0 through PageSize - 1.
  219. \14\01%s\05
  220. ;\14\02%s\05
  221. \14\03%s\05
  222. \14\04%s\05
  223. \14\05%s\05
  224. \14\06%s\05
  225. ;\14\07%s\05
  226. \14\08%s\05
  227. ;\14\09%s\05
  228. \14\0a%s\05
  229. ;\14\0b%s\05
  230. ;\14\0c%s\05
  231. ;\14\0d%s\05
  232. ;\14\0e%s\05
  233. ;\14\0f%s\05
  234.  
  235. ;;ResultsHeader
  236. ; This is sent once each time the scoreboard is updated with results. It
  237. ; is sent before any result lines are sent.
  238. ; Line codes:
  239. ;  \00  No variable
  240. ;  \01  OFFICIAL/UNOFFICIAL string
  241. ;  \02  Event name
  242. ;  \03  Wind
  243. ;  \04  Event number
  244. ;  \05  Round number
  245. ;  \06  Heat number
  246. ;  \07  AUTO/MANUAL start type
  247. ;  \08  Number of participants
  248. \13\00\01R\02
  249. ;\13\01%s\05
  250. \13\02%s\05
  251. ;\13\03%s\05
  252. \13\04%s\05
  253. \13\05%s\05
  254. \13\06%s\05
  255. ;\13\07%s\05
  256. \13\08%s\05
  257.  
  258. ;;ResultsTrailer
  259. ; This is sent once each time the scoreboard is updated with results. It
  260. ; is sent after all result lines are sent.
  261. ; Line codes are identical to the ResultsHeader line codes.
  262. \13\00\03\04
  263.  
  264. ;;Result
  265. ; This is sent once for each result line displayed on the scoreboard.
  266. ; Line codes:
  267. ;  \00  No variable
  268. ;  \01  Place
  269. ;  \02  Lane
  270. ;  \03  Id
  271. ;  \04  Name
  272. ;  \05  Affiliation
  273. ;  \06  Time
  274. ;  \07  Delta Time
  275. ;  \08  Cumulative Split Time
  276. ;  \09  Last Split Time
  277. ;  \0a  Laps To Go
  278. ;  \0b  License
  279. ;  \0c  ReacTime
  280. ;  \0d  Speed
  281. ;  \0e  Pace
  282. ;  \0f  Best Split Time
  283. ; Register[0] is initialized with the index of the current result line and
  284. ; will range from 0 through PageSize - 1.
  285. \14\01%s\05
  286. ;\14\02%s\05
  287. \14\03%s\05
  288. \14\04%s\05
  289. \14\05%s\05
  290. \14\06%s\05
  291. ;\14\07%s\05
  292. \14\08%s\05
  293. ;\14\09%s\05
  294. \14\0a%s\05
  295. ;\14\0b%s\05
  296. ;\14\0c%s\05
  297. ;\14\0d%s\05
  298. ;\14\0e%s\05
  299. ;\14\0f%s\05
  300.  
  301. ;;MessageHeader
  302. ; This is sent once each time the scoreboard is updated with the message. It
  303. ; is sent before any message lines are sent.
  304. ; Line codes:
  305. ;  \00  No variable
  306. \15\00\01M\02
  307.  
  308. ;;MessageTrailer
  309. ; This is sent once each time the scoreboard is updated with the message. It
  310. ; is sent after all message lines are sent.
  311. ; Line codes are identical to the MessageHeader line codes.
  312. \15\00\03\04
  313.  
  314. ;;Message
  315. ; This is sent once for each message line displayed on the scoreboard.
  316. ; Line codes:
  317. ;  \00  No variable
  318. ;  \01  Text
  319. ; Register[0] is initialized with the index of the current message line and
  320. ; will range from 0 through <number of lines> - 1.
  321. \16\01%s\05
  322.  
  323.