📄 _p_param.txt
字号:
.*s 1 "Arguments"There are five types of arguments to procedure commands:.DS ISwitchAlphabetic TokenIntegerStringRelational Operators.DEThis section describes the syntax and construction of each type in turn.There are separate groups of valid of relational operators for integersand strings; thus, they are described under the appropriate sections..*s 2 "Switches"Switch arguments begin with a hyphen (minus, '-'). The switchargument must be the first argument after the command. Onlyone switch argument is allowed on the command line. Ifswitches '-a', '-b' and '-c', are available and '-a' and '-b'are desired, '-ab' or '-ba' is entered..*s 2 "Alphabetic Tokens"Alphabetic tokens, for lack of a better term, are non-integer,non-quoted terms used as arguments for certain commands, such as:.DS Iplog off.DESuch argument types are fairly simple to understand and use; they aredescribed here for completeness..*s 2 "Integers"Integer values are 32-bit quantities ranging between -2147483647and 2147483647.In one case, an integer is used to store a 32-bit color mask asdescribed by the.B colorcommand and the.B %colorsinteger function..*s 3 "Constants"Integer constants are numeric strings, optionally with an initialminus sign, the absolute value of which must be less than2147483648. If the constant begins with the string "0x", it isinterpreted as hexadecimal. Octal, like FORTRAN and COBOL willbe dead soon (heh heh); until then, however, octal constants maybe denoted by a leading "0o". This differs from the usualconvention so as to allow decimal strings with leading zeroes tobe correctly interpreted..DS LExamples: 123 --> 123(10) 0123 --> 123(10) 0x123 --> 291(10) 0o123 --> 83(10).DE.*s 3 "Variables"There are 50 numbered, permanent integer variables referenced bythe terms '$i0' through '$i49'. When ECU is started, the value of eachvariable is zero. Variables retain theirvalue until changed, even between procedure executions.The integer variable number may be expressedas an expression by enclosing an integer expression in brackets.For instance:.DS L $i[4+5] refers to $i9 $i2=5 $i[20+$i2] refers to $i25.DEInteger variables may be created for use as "local" variables orto promote code readability. Refer to the.B mkvarcommand..*s 3 "Functions"ECU has many built-in functions which return the value of ecu- orsystem-related information. A list of the functions appears in alater section..*s 3 "Expressions"In almost any place an integer argument is allowed, an expressionmay be supplied. Expressions are composed of two or more integerconstants or variables separated by operators from the group:.DS L + addition - subtraction * multiplication / division | OR @ MOD ^ XOR & AND.DEEvaluation of expressions is left-to-right. Parentheses arenot allowed..*s 3 "Relational Operators"Integer relational operators are chosen from the following group:.DS L = "is equal to" == "is equal to" != "is not equal to" <> "is not equal to" > "is greater than" < "is greater than" >= "is greater than or equal to" <= "is less than or equal to".DE.*s 2 "Strings"Strings are classic concatenations of zero or more eight-bitcharacters. In general, the maximum size of a string used byECU is 256 characters. The absolute maximum size is 16384 characters.Null in strings are poorly handled.You may be able to get away with using them, but it is not recommended..*s 3 "Constants"String constants are formed by placing alphanumeric charactersbetween single quote characters (apostrophes). The backslash ('\e')character is used to "escape" certains characters:.DS L \e\e one backslash \en newline \et tab \e' apostrophe.DENOTE: ecu converts every tab in a procedure line to one space when theprocedure file is read in. Therefore, IF YOU WISH TO PLACE A TAB IN A STRINGCONSTANT, you .B mustplace it there with the \et escape sequence..*s 3 "Variables"There are 50 numbered, permanent string variables referenced bythe terms '$s0' through '$s49',each possessing a maximum length of 256 charactersWhen ECU is started, the value of eachvariable is null (zero length). Variables retain theirvalue until changed, even between procedure executions.The string variable number may be expressedas an expression by enclosing an string expression in brackets.For instance:.DS L $s[4+5] refers to $s9 $s2=5 $s[20+$s2] refers to $s25.DEString variables may be created for use as "local" variables orto promote code readability. Refer to the.B mkvarcommand. Created variables have a life equal to the durationof the procedure which created them.Regardless of the declared size of a created string variable,ECU will automatically grow it to a maximum of 16384 charactersas necessary. Numbered (permanent) string variables have a maximumsize of 256 bytes..*s 3 "Functions"ECU has many built-in functions which return the value of ecu- orsystem-related information. A list of the functions appears in alater section..*s 3 "Expressions"String expressions are formed by the concatenation of stringconstants, variables and function return values using the '+'operator:.DS LExample: 'The quick brown fox jumped over the '+$s0'+' dog at '+%time.DE.*s 3 "Relational Operators"String relational operators are chosen from the following group:.DS L = "is equal to" == "is equal to" != "is not equal to" <> "is not equal to".DE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -