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 / Electro-led.lss < prev    next >
Text File  |  2006-05-19  |  7KB  |  160 lines

  1. ; Defaults: 9600,8,N,1
  2. ;
  3. ; Lynx Scoreboard Script
  4. ;
  5. ; Copyright (c) 1995-2005 Lynx System Developers, Inc.
  6. ;
  7. ; Written by Hugues Lacroix
  8. ; Script for new 6 digits raceclock (Sept. 2005)
  9. ;
  10. ; Notes:
  11. ;  + Empty lines and lines that start with a semicolon are ignored.
  12. ;  + Lines that start with two semicolons indicate a section header.
  13. ;    They must be one of the following:
  14. ;      ;;Initialization
  15. ;      ;;TimeRunning
  16. ;      ;;TimeStopped
  17. ;      ;;TimeGun
  18. ;      ;;TimeBreak
  19. ;      ;;TimeUpdate
  20. ;      ;;Wind
  21. ;      ;;TimeOfDay
  22. ;      ;;ResultsHeader
  23. ;      ;;ResultsTrailer
  24. ;      ;;Result
  25. ;    Sections may be omitted, appear in any order, and occur more than once.
  26. ;  + Format lines must begin with a value indicating which variable
  27. ;    they want to access. The special code \00 indicates that no variable
  28. ;    is being requested. If a variable is requested it will be inserted where
  29. ;    a '%s' printf style format specifier appears. There can only be one '%s'
  30. ;    specifier in lines requesting a variable and no other printf format
  31. ;    specifiers may appear. Remember, lines requesting a variable are used as
  32. ;    a printf format string and therefore must behave as such. Lines not 
  33. ;    requesting variables (code \00) can do whatever they want as these 
  34. ;    lines are not fed to a printf statement.
  35. ;  + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
  36. ;    digit. Note that h must be lowercase.
  37. ;  + Format lines can have the following commands embedded in them.
  38. ;    Note that only 10 registers (indexed 0-9) are currently implemented.
  39. ;     \U\hh   Set the 'U' value to hh. It is reset after the next command.
  40. ;     \Ui\hh  Set the 'U' value to register[hh].
  41. ;     \X\hh   Set the 'X' value to hh. It is reset after the next command.
  42. ;     \Xi\hh  Set the 'X' value to register[hh].
  43. ;     \=\hh   register[hh] = {register[U]|X|1}                 (assign)
  44. ;     \*\hh   register[hh] = register[hh] * {register[U]|X|1}  (multiply)
  45. ;     \/\hh   register[hh] = register[hh] / {register[U]|X|1}  (divide)
  46. ;     \#\hh   register[hh] = register[hh] # {register[U]|X|1}  (modulus)
  47. ;     \+\hh   register[hh] = register[hh] + {register[U]|X|1}  (add)
  48. ;     \-\hh   register[hh] = register[hh] - {register[U]|X|1}  (subtract)
  49. ;     \<\hh   register[hh] = register[hh] << {register[U]|X|1} (shift left)
  50. ;     \>\hh   register[hh] = register[hh] >> {register[U]|X|1} (shift right)
  51. ;     \&\hh   register[hh] = register[hh] & {register[U]|X|1}  (bit and)
  52. ;     \|\hh   register[hh] = register[hh] | {register[U]|X|1}  (bit or)
  53. ;     \^\hh   register[hh] = register[hh] ^ {register[U]|X|1}  (bit xor)
  54. ;     \~\hh   register[hh] = ~register[hh]                     (bit invert)
  55. ;     \F\hh   register[hh] = The result of running Function {U|0} on the 
  56. ;             next {X|<eol>} characters.
  57. ;              \U\00  IDS checksum.
  58. ;              \U\01  XOR checksum. register[hh] is used as the seed value.
  59. ;     \O\hh   Output register[hh] as an {X|1} byte value using method {U|0}.
  60. ;              \U\00  Binary little-endian (Intel byte order).
  61. ;              \U\01  Binary big-endian (Motorola byte order).
  62. ;              \U\02  ASCII text right justified space padded.
  63. ;              \U\03  ASCII text right justified zero padded.
  64. ;              \U\04  ASCII text left justified space padded.
  65. ;              \U\05  ASCII text left justified zero padded.
  66. ;     \S\hh   Scan the next {X|1} bytes into register[hh] using method {U|0}.
  67. ;              \U\00  ASCII text base 10.
  68. ;              \U\01  Binary little-endian (Intel byte order).
  69. ;              \U\02  Binary big-endian (Motorola byte order).
  70. ;     \P\hh   Run Procedure hh on the next {X|<eol>} characters.
  71. ;              \P\00  Reverse characters.
  72. ;              \P\01  Convert characters to Colorado Time format. Register[1]
  73. ;                       is the current character position on entry and the
  74. ;                       next character position on exit.
  75. ;              \P\02  Convert characters to Daktronics AllSport format.
  76. ;     \B\hh   Delete {register[U]|hh} (to beginning of line if zero) characters 
  77. ;             before the cursor or until the string contains X characters.
  78. ;     \D\hh   Delete {register[U]|hh} (to end of line if zero) characters 
  79. ;             at the cursor or until the string contains X characters.
  80. ;     \I\hh   Insert {register[U]|hh} spaces at the cursor or until the string
  81. ;             contains X characters.
  82. ;     \Ic\hh  Insert {register[U]|hh} {X's|spaces} at the cursor.
  83. ;     \L\hh   Move the cursor {register[U]|hh} positions to the left (to the 
  84. ;             beginning of the line if zero).
  85. ;     \R\hh   Move the cursor {register[U]|hh} positions to the right (to the
  86. ;             end of the line if zero).
  87. ;    Note that numbers 0 thru 9 can be entered directly for single character
  88. ;    embedded commands. For example, '\U\04' is the same as '\U4' and 
  89. ;    '\=\01' is the same as '\=1'.
  90. ;  + Be very careful about whitespace in each format line. Characters other
  91. ;    than '%s' specifiers and embedded commands and values will be sent
  92. ;    exactly as they appear on the line. This means, for instance, that using
  93. ;    tabs to make a line 'look right' in you favorite editor will cause
  94. ;    tabs to be sent to the scoreboard instead of the equivalent number of
  95. ;    spaces (probably not what you wanted).
  96. ;
  97. ; The format lines follow.
  98.  
  99. ;;Initialization
  100. ; This is sent once to initialize the scoreboard.
  101. ; Line codes:
  102. ;  \00 No variable
  103. \00c
  104. \00\0d
  105.  
  106. ;;TimeRunning
  107. ; This is sent approximately 10 times per second.
  108. ; Line codes:
  109. ;  \00  No variable
  110. ;  \01  Formatted time
  111. ;  \02  Binary time in milliseconds (as a 4 byte little endian integer)
  112. ; Setting register[0] to 1 in a format line will cause that line and
  113. ; subsequent lines to only be sent once per second (when the second's 
  114. ; digit changes) instead of approximately 10 times per second. Setting
  115. ; register[0] to 0 will resume normal operation for remaining lines.
  116. ;
  117. \01c%12.12s\B2\L1\B1\L2\B1\L2\B3
  118. \00 \0d\0a
  119.  
  120. ;;TimeStopped
  121. ; This is sent when the time is stopped by a beam break.
  122. ; Line codes are identical to the TimeRunning line codes.
  123. \01c%12.12s\B1\L2\B1\L2\B1\L2\B3
  124. \00\0d\0a
  125.  
  126. ;;TimeOfDay
  127. \01\=0c%12.12s\B4\L2\B1\L2\B1
  128. \00\0d\0a
  129.  
  130. ;;ResultsHeader
  131. ; This is sent once each time the scoreboard is updated with results. It
  132. ; is sent before any result lines are sent.
  133. ; Line codes:
  134. ;  \00  No variable
  135. ;  \01  OFFICIAL/UNOFFICIAL string
  136. ;  \02  Event name
  137. ;  \03  Wind
  138. ;  \04  Event number
  139. ;  \05  Round number
  140. ;  \06  Heat number
  141. ;  \07  AUTO/MANUAL start type
  142. ;  \08  Number of participants
  143. ;\00c
  144.  
  145. ;;Result
  146. ; This is sent once for each result line displayed on the scoreboard.
  147. ; Line codes:
  148. ;  \00  No variable
  149. ;  \01  Place
  150. ;  \02  Lane
  151. ;  \03  Id
  152. ;  \04  Name
  153. ;  \05  Affiliation
  154. ;  \06  Time
  155. ; Register[0] is initialized with the index of the current result line and
  156. ; will range from 0 through <\Scoreboards\Scoreboardxx\ResultsPageSize-1>.
  157. \06c%12.12s\B1\L2\B1\L2\B1\L2\B3
  158. \00\0d\0a
  159.