运算与表达式
Last updated
Last updated
2023 - MTools Tec
Name
Operator
Example
+ - × ÷
+ - * /
modulo
#
brackets
( )
and
@&
or
@|
xor
@^
b0 xor b1
not
@~
not b3
连续求和
b1+b2+···+b14
sum(1:14)
连续异或
b1 xor b2 xor ··· xor b10
sum(1:10)
连续逻辑与
b1 and b2 and ··· and b14
and(1:14)
CRC8/CRC16
Rule
Expression
b2 = b1
b2=b1
b4 = b2 + 0x1F
b4 = b2 + 31
b15 = b0 xor b1
b15 = b0 @^ b1
b2= not b0
b2 = @~b0