Lynx預(yù)設(shè)值翻譯-中英
: 9600,8,N,1
Lynx記分板腳本
著作權(quán) (c) 1995-1997Lynx系統(tǒng)開發(fā)商有限公司。
編者:Kirk Sigel
注釋:
; + 空行和以一個分號開頭的行忽略不計。
; + 以兩個分號開頭的行表示一個欄目標(biāo)題。
; 它們必須是以下其中一個:
; ;;賦初值
; ;;時間運轉(zhuǎn)
; ;;時間停止
; ;;報時炮
; ;;時間中斷
; ;;更新時間
; ;;快進(jìn)
; ;;當(dāng)日時間
; ;;結(jié)果標(biāo)題
; ;;結(jié)果預(yù)告
; ;;結(jié)果
; 章節(jié)可以省略,也可以出現(xiàn)多于一次。
; + 格式行必須以一個值開頭,該值表示他們想使用哪一個變量。\00這一特定的編碼表示
; 不要求變量。如果要求變量,則將其插入“%s”寫格式化輸出格式說明符出現(xiàn)的地方。
; 在要求變量的行中只能出現(xiàn)一個“%s”說明符,并且不準(zhǔn)出現(xiàn)其他的寫格式化輸出說
; 明符。記住,要求變量的行被用作寫格式化輸出格式行,因此必須這樣運行。不要求
; 變量(編碼\00)的行可以隨意運行,因為這些行不用于寫格式化輸出陳述。
; + 輸入任意8比特的值作為\hh,這里h是一個小寫的十六進(jìn)制的數(shù)位。注意h必須是
; 小寫。
; + 格式行能夠?qū)⒁韵轮噶钋度搿?br />
; 注意通常只有10個暫存器(索引0-9)可以執(zhí)行。
; 將“U”值設(shè)定至hh。在下一個指令后要重新設(shè)定。
; 將“U”值設(shè)定至?xí)捍嫫鱗hh]。
; 將“X”值設(shè)定至hh。在下一個指令后要重新設(shè)定。
; 將“X”值設(shè)定至?xí)捍嫫鱗hh]。
; \=\hh register[hh] = {register[U]|X|1} (賦值)
; \*\hh register[hh] = register[hh] * {register[U]|X|1} (乘法)
; \/\hh register[hh] = register[hh] / {register[U]|X|1} (除法)
; \#\hh register[hh] = register[hh] # {register[U]|X|1} (絕對值)
; \+\hh register[hh] = register[hh] + {register[U]|X|1} (加法)
; \-\hh register[hh] = register[hh] - {register[U]|X|1} (減法)
; \<\hh register[hh] = register[hh] << {register[U]|X|1} (左進(jìn)位)
; \>\hh register[hh] = register[hh] >> {register[U]|X|1} (右進(jìn)位)
; \&\hh register[hh] = register[hh] & {register[U]|X|1} (比特以及)
; \|\hh register[hh] = register[hh] | {register[U]|X|1} (比特或者)
; \^\hh register[hh] = register[hh] ^ {register[U]|X|1} (比特x以及)
; \~\hh register[hh] = ~register[hh] (比特取反)
; \F\hh 暫存器[hh] = 下一{X|<終止>}字符上的運轉(zhuǎn)函數(shù){U|0}的結(jié)果。
; \U\00 標(biāo)識部分校驗和。
; \U\01 或非邏輯校驗和。暫存器[hh]被用作晶種數(shù)量。
; \U\02 加法校驗和。暫存器[hh]被用作晶種數(shù)量。
; \O\hh 使用{U|0}法輸出暫存器[hh]作為一個{X|1}字節(jié)值。
; \U\00 二進(jìn)制小字節(jié)序格式(因特爾位元組順序)。
; \U\01 二進(jìn)制大字節(jié)序格式(摩托羅拉位元組順序)。
; \U\02 ASCII右對齊文本空格填補(bǔ)。
; \U\03 ASCII右對齊文本零填補(bǔ)。
; \U\04 ASCII左對齊文本空格填補(bǔ)。
; \U\05 ASCII text left justified zero padded.ASCII右對齊文本零填補(bǔ)。
; \S\hh 使用{U|0}方法將下一個{X|1}字節(jié)掃描至?xí)捍嫫鱗hh]中。
; \U\00 ASCII文本基數(shù)10。
; \U\01 二進(jìn)制小字節(jié)序格式(因特爾位元組順序)。
; \U\02 二進(jìn)制大字節(jié)序格式(摩托羅拉位元組順序)。
; \P\hh 在下一個{X|<終止>}字符上運行程序hh。
; \P\00 反轉(zhuǎn)字符。
; \P\01 轉(zhuǎn)換字符至科羅拉多州時間格式。
; 暫存器[1]是當(dāng)前字符入門位置和下一個字符
; \P\02 轉(zhuǎn)換字符至達(dá)科AllSport 格式。
; \B\hh 在光標(biāo)前或者直到行中出現(xiàn)X字符刪除{暫存器[U]|hh}(若為零,則至行開
; 頭)字符。
; \D\hh 在光標(biāo)處或者直到行中出現(xiàn)X字符,刪除{暫存器[U]|hh}(若為零,則至行
; 結(jié)束)字符。
; \I\hh 在光標(biāo)處或者直到行中出現(xiàn)X字符,插入{暫存器[U]|hh}空格。
; \Ic\hh 在光標(biāo)處插入{暫存器[U]|hh}{X's|空格}。
; \L\hh 將光標(biāo){暫存器[U]|hh}位置移至左邊(若為零,則至行開頭)。
; \R\hh 將光標(biāo){暫存器[U]|hh}位置移至右邊(若為零,則至行結(jié)束)。
注意,對于單字符嵌入指令,數(shù)字0到9能夠直接輸入。例如,“\U\04”與“\U4”
相同,“\=\01”與“\=1”相同。
+ 一定要注意每一格式行中的空白。除了“%s”說明符和嵌入指令,當(dāng)字符和值出現(xiàn)
在行中時可以被精確發(fā)送。這就意味著,比如,按照你最喜歡的編輯方式使用制表符
編寫“向右看”一行將使得制表符被發(fā)送至記分板而不是空格的等價數(shù)字(可能是你
不喜歡的)。
格式行緊隨其后。
;;賦初值
; 這個將被發(fā)送一次以對記分板進(jìn)行初始化。
; 行編碼:
; \00 無變量
;\00\0d\0a***初始化記分板 ***\0d\0a
; Defaults: 9600,8,N,1
;
; Lynx Scoreboard Script
;
; Copyright (c) 1995-1997 Lynx System Developers, Inc.
;
; Written by Kirk Sigel
;
; Notes:
; + Empty lines and lines that start with a semicolon are ignored.
; + Lines that start with two semicolons indicate a section header.
; They must be one of the following:
; ;;Initialization
; ;;TimeRunning
; ;;TimeStopped
; ;;TimeGun
; ;;TimeBreak
; ;;TimeUpdate
; ;;Wind
; ;;TimeOfDay
; ;;ResultsHeader
; ;;ResultsTrailer
; ;;Result
; Sections may be omitted, appear in any order, and occur more than once.
; + Format lines must begin with a value indicating which variable
; they want to access. The special code \00 indicates that no variable
; is being requested. If a variable is requested it will be inserted where
; a '%s' printf style format specifier appears. There can only be one '%s'
; specifier in lines requesting a variable and no other printf format
; specifiers may appear. Remember, lines requesting a variable are used as
; a printf format string and therefore must behave as such. Lines not
; requesting variables (code \00) can do whatever they want as these
; lines are not fed to a printf statement.
; + Arbitrary 8 bit values are entered as \hh where h is a lowercase hex
; digit. Note that h must be lowercase.
; + Format lines can have the following commands embedded in them.
; Note that only 10 registers (indexed 0-9) are currently implemented.
; \U\hh Set the 'U' value to hh. It is reset after the next command.
; \Ui\hh Set the 'U' value to register[hh].
; \X\hh Set the 'X' value to hh. It is reset after the next command.
; \Xi\hh Set the 'X' value to register[hh].
; \=\hh register[hh] = {register[U]|X|1} (assign)
; \*\hh register[hh] = register[hh] * {register[U]|X|1} (multiply)
; \/\hh register[hh] = register[hh] / {register[U]|X|1} (divide)
; \#\hh register[hh] = register[hh] # {register[U]|X|1} (modulus)
; \+\hh register[hh] = register[hh] + {register[U]|X|1} (add)
; \-\hh register[hh] = register[hh] - {register[U]|X|1} (subtract)
; \<\hh register[hh] = register[hh] << {register[U]|X|1} (shift left)
; \>\hh register[hh] = register[hh] >> {register[U]|X|1} (shift right)
; \&\hh register[hh] = register[hh] & {register[U]|X|1} (bit and)
; \|\hh register[hh] = register[hh] | {register[U]|X|1} (bit or)
; \^\hh register[hh] = register[hh] ^ {register[U]|X|1} (bit xor)
; \~\hh register[hh] = ~register[hh] (bit invert)
; \F\hh register[hh] = The result of running Function {U|0} on the
; next {X|
; \U\00 IDS checksum.
; \U\01 XOR checksum. register[hh] is used as the seed value.
; \U\02 ADD checksum. register[hh] is used as the seed value.
; \O\hh Output register[hh] as an {X|1} byte value using method {U|0}.
; \U\00 Binary little-endian (Intel byte order).
; \U\01 Binary big-endian (Motorola byte order).
; \U\02 ASCII text right justified space padded.
; \U\03 ASCII text right justified zero padded.
; \U\04 ASCII text left justified space padded.
; \U\05 ASCII text left justified zero padded.
; \S\hh Scan the next {X|1} bytes into register[hh] using method {U|0}.
; \U\00 ASCII text base 10.
; \U\01 Binary little-endian (Intel byte order).
; \U\02 Binary big-endian (Motorola byte order).
; \P\hh Run Procedure hh on the next {X|
; \P\00 Reverse characters.
; \P\01 Convert characters to Colorado Time format. Register[1]
; is the current character position on entry and the
; next character position on exit.
; \P\02 Convert characters to Daktronics AllSport format.
; \B\hh Delete {register[U]|hh} (to beginning of line if zero) characters
; before the cursor or until the string contains X characters.
; \D\hh Delete {register[U]|hh} (to end of line if zero) characters
; at the cursor or until the string contains X characters.
; \I\hh Insert {register[U]|hh} spaces at the cursor or until the string
; contains X characters.
; \Ic\hh Insert {register[U]|hh} {X's|spaces} at the cursor.
; \L\hh Move the cursor {register[U]|hh} positions to the left (to the
; beginning of the line if zero).
; \R\hh Move the cursor {register[U]|hh} positions to the right (to the
; end of the line if zero).
; Note that numbers 0 thru 9 can be entered directly for single character
; embedded commands. For example, '\U\04' is the same as '\U4' and
; '\=\01' is the same as '\=1'.
; + Be very careful about whitespace in each format line. Characters other
; than '%s' specifiers and embedded commands and values will be sent
; exactly as they appear on the line. This means, for instance, that using
; tabs to make a line 'look right' in you favorite editor will cause
; tabs to be sent to the scoreboard instead of the equivalent number of
; spaces (probably not what you wanted).
2014.1.4