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 / Omega-9.lss < prev    next >
Text File  |  2002-03-14  |  9KB  |  215 lines

  1. ; Defaults: 9600,7,E,1
  2. ;
  3. ; Lynx Scoreboard Script
  4. ;
  5. ; Copyright (c) 1995-1997 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Kirk Sigel
  8. ;
  9. ; Script for 9-digit Omega UNT4 by Todd Chamoy 2/22/00
  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. ;              \U\02  ADD checksum. register[hh] is used as the seed value.
  61. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  62. ;              \U\00  Binary little-endian (Intel byte order).
  63. ;              \U\01  Binary big-endian (Motorola byte order).
  64. ;              \U\02  ASCII text right justified space padded.
  65. ;              \U\03  ASCII text right justified zero padded.
  66. ;              \U\04  ASCII text left justified space padded.
  67. ;              \U\05  ASCII text left justified zero padded.
  68. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  69. ;              \U\00  ASCII text base 10.
  70. ;              \U\01  Binary little-endian (Intel byte order).
  71. ;              \U\02  Binary big-endian (Motorola byte order).
  72. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  73. ;              \P\00  Reverse characters.
  74. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  75. ;                       is the current character position on entry and the
  76. ;                       next character position on exit.
  77. ;              \P\02  Convert characters to Daktronics AllSport format.
  78. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  79. ;             before the cursor or until the string contains X characters.
  80. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  81. ;             at the cursor or until the string contains X characters.
  82. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  83. ;             contains X characters.
  84. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  85. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  86. ;             beginning of the line if zero).
  87. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  88. ;             end of the line if zero).
  89. ;    Note that numbers 0 thru 9 can be entered directly for single character
  90. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  91. ;    '\=\01' is the same as '\=1'.
  92. ;  + Be very careful about whitespace in each format line. Characters other
  93. ;    than '%s' specifiers and embedded commands and values will be sent
  94. ;    exactly as they appear on the line. This means, for instance, that using
  95. ;    tabs to make a line 'look right' in you favorite editor will cause
  96. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  97. ;    spaces (probably not what you wanted).
  98. ;
  99. ; The format lines follow.
  100.  
  101. ;;Initialization
  102. ; This is sent once to initialize the scoreboard.
  103. ; Line codes:
  104. ;  \00 No variable
  105. \00\01\02\0c\04
  106.  
  107. ;;TimeRunning
  108. ; This is sent approximately 10 times per second.
  109. ; Line codes:
  110. ;  \00  No variable
  111. ;  \01  Formatted time
  112. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  113. ; Setting register[0] to 1 in a format line will cause that line and
  114. ; subsequent lines to only be sent once per second (when the second's 
  115. ; digit changes) instead of approximately 10 times per second. Setting
  116. ; register[0] to 0 will resume normal operation for remaining lines.
  117. \01\=0\01\14R90\02\08   \02%12.12s\B2\L4\B1:\L3\B3\R0 \04
  118.  
  119. ;;TimeStopped
  120. ; This is sent when the time is stopped by a beam break.
  121. ; Line codes are identical to the TimeRunning line codes.
  122. \01\01\14R90\02\08   \02%12.12s\B1\L5\B1:\L3\B3\R0\04
  123.  
  124. ;;TimeGun
  125. ; This is sent when a gun signal is received.
  126. ; Line codes are identical to the TimeRunning line codes.
  127. ;\01\0d\0aGun time    : %12.12s\0d\0a
  128.  
  129. ;;TimeBreak
  130. ; This is sent when a beam break is recieved.
  131. ; Line codes are identical to the TimeRunning line codes.
  132. ;\01\0d\0aBreak time  : %12.12s\0d\0a
  133.  
  134. ;;TimeUpdate
  135. ; This is sent approximately 10 times per second.
  136. ; Line codes are identical to the TimeRunning line codes.
  137. ;\01\0dUpdate time : %12.12s
  138.  
  139. ;;Wind
  140. ; This is sent in the time stream when a wind reading is received.
  141. ; Line codes:
  142. ;  \00  No variable
  143. ;  \01  Formatted wind (same format as ResultsHeader wind)
  144. ;  \02  Binary wind in hundredths of units (as a 4 byte little endian integer)
  145. ;\01\0d\0aWind        : %12.12s\0d\0a
  146.  
  147. ;;TimeOfDay
  148. ; This is sent when the 'Send time of day' option is checked in the
  149. ; Scoreboard pull down menu.
  150. ; Line codes are identical to the TimeRunning line codes.
  151. \01\=0\01\14R90\02\08   \02%12.12s\B4\L2\B1.\R0\04
  152.  
  153. ;;ResultsHeader
  154. ; This is sent once each time the scoreboard is updated with results. It
  155. ; is sent before any result lines are sent.
  156. ; Line codes:
  157. ;  \00  No variable
  158. ;  \01  OFFICIAL/UNOFFICIAL string
  159. ;  \02  Event name
  160. ;  \03  Wind
  161. ;  \04  Event number
  162. ;  \05  Round number
  163. ;  \06  Heat number
  164. ;  \07  AUTO/MANUAL start type
  165. ;  \08  Number of participants
  166. ;\00*** Results Header ***\0d\0a
  167. ;\01OFFICIAL/UNOFFICIAL: %s\0d\0a
  168. ;\02Event name         : %s\0d\0a
  169. ;\03Wind               : %s\0d\0a
  170. ;\04Event number       : %s\0d\0a
  171. ;\05Round number       : %s\0d\0a
  172. ;\06Heat number        : %s\0d\0a
  173. ;\07AUTO/MANUAL start  : %s\0d\0a
  174. ;\08Number of results  : %s\0d\0a
  175. ;\00Plc Ln  Id  Name       Affil      Time     Delta    Cum ST   Last ST  Laps  \0d\0a
  176. ;\00--- --- --- ---------- ---------- -------- -------- -------- -------- ------\0d\0a
  177.  
  178. ;;ResultsTrailer
  179. ; This is sent once each time the scoreboard is updated with results. It
  180. ; is sent after all result lines are sent.
  181. ; Line codes are identical to the ResultsHeader line codes.
  182. ;\00*** Results Trailer ***\0d\0a\0d\0a
  183.  
  184. ;;Result
  185. ; This is sent once for each result line displayed on the scoreboard.
  186. ; Line codes:
  187. ;  \00  No variable
  188. ;  \01  Place
  189. ;  \02  Lane
  190. ;  \03  Id
  191. ;  \04  Name
  192. ;  \05  Affiliation
  193. ;  \06  Time
  194. ;  \07  Delta Time
  195. ;  \08  Cumulative Split Time
  196. ;  \09  Last Split Time
  197. ;  \0a  Laps To Go
  198. ;  \0b  License
  199. ; Register[0] is initialized with the index of the current result line and
  200. ; will range from 0 through PageSize - 1.
  201. \00\01\14S90\02\08
  202. \01%1.1s\20
  203. \02%1.1s
  204. ;\03%-3.3s 
  205. ;\04%-10.10s 
  206. ;\05%-10.10s 
  207. \06\02%12.12s\L6\B1:\L3\B3\R0\04
  208. ;\07%-8.8s 
  209. ;\08%-8.8s 
  210. ;\09%-8.8s 
  211. ;\0a%-6.6s
  212. ;\00\0d\0a
  213.  
  214.  
  215.