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