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 / Omni1000place.lss < prev    next >
Text File  |  2002-03-14  |  8KB  |  178 lines

  1. ; Defaults: 9600,7,E,2
  2. ;
  3. ; Lynx Scoreboard Script
  4. ;
  5. ; Copyright (c) 1995-1997 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Kirk Sigel
  8. ;
  9. ; adapted to sort on index instead of lane by Todd Chamoy 4/19/01
  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. \00\0c
  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. \01\01\06\081 \02   %12.12s\L9\B3
  116.  
  117. ;;TimeStopped
  118. ; This is sent when the time is stopped by a beam break.
  119. ; Line codes are identical to the TimeRunning line codes.
  120. \01\01\06\081 \02   %12.12s\L9\B3
  121.  
  122. ;;TimeOfDay
  123. \01\=0\01\06\081 \02      %12.12s\B4 \L9\B3
  124.  
  125. ;;ResultsHeader
  126. ; This is sent once each time the scoreboard is updated with results. It
  127. ; is sent before any result lines are sent.
  128. ; Line codes:
  129. ;  \00  No variable
  130. ;  \01  OFFICIAL/UNOFFICIAL string
  131. ;  \02  Event name
  132. ;  \03  Wind
  133. ;  \04  Event number
  134. ;  \05  Round number
  135. ;  \06  Heat number
  136. ;  \07  AUTO/MANUAL start type
  137. ;  \08  Number of participants
  138.  
  139.  
  140. ;;ResultsTrailer
  141. ; This is sent once each time the scoreboard is updated with results. It
  142. ; is sent after all result lines are sent.
  143. ; Line codes are identical to the ResultsHeader line codes.
  144. \00\01\06\08
  145. \00\0a\0a\0a\0a\0a\0a\0a\0a\0a\0a\0a      
  146. ; Event number
  147. \04%4.4s\L3\B1\R0
  148. ; Heat number
  149. \06%3.3s\R0
  150.  
  151. ;;Result
  152. ; This is sent once for each result line displayed on the scoreboard.
  153. ; Line codes:
  154. ;  \00  No variable
  155. ;  \01  Place
  156. ;  \02  Lane
  157. ;  \03  Id
  158. ;  \04  Name
  159. ;  \05  Affiliation
  160. ;  \06  Time
  161. ; Register[0] is initialized with the index of the current result line and
  162. ; will range from 0 through <SCBPageSize-1>.
  163. ;
  164. \00\01\06\08
  165. ; Initialize register[2] to "Index 11"
  166. \00\X\0b\=2
  167. ; register[2]=Index
  168. \00\U3\O0\L1\S2\R0\B1
  169. ; Output register[2] of 0ah
  170. \00\X\0a\U2\Ic0
  171. ; Lane
  172. \02%2.2s\L1\B1\R1\20\02\20
  173. ; Place
  174. \01%2.2s\L1\B1\R1\20
  175. ; Time
  176. \06%12.12s\L9\B3\R0F
  177.  
  178.