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