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