3 scsi scripts expressions, Table 2.4 arithmetic operators, Table 2.5 bitwise operators – Avago Technologies LSI53C1010 User Manual
Page 37: 4 scsi scripts keywords, Scsi scripts expressions, Scsi scripts keywords, Arithmetic operators, Bitwise operators

Using SCSI SCRIPTS
2-7
2.4.3 SCSI SCRIPTS Expressions
There are two forms of SCSI SCRIPTS operators, arithmetic and bitwise,
described in
and
The value of all expressions is automatically extended to 32 bits. When
expressions are used in a context where the evaluated value is less than
32 bits, the least significant bits are used. For example, if an expression
is used to represent a count, normally 24 bits, for a Move instruction, the
evaluated value is truncated to 24 bits. You are notified if the expression
has been truncated and if the value of the expression changes during
truncation. The symbols for the bitwise operators are used only for
register manipulations. Any other instruction using comparison must spell
out AND or OR.
2.4.4 SCSI SCRIPTS Keywords
The SCSI SCRIPTS keywords have eight types: Declarative, Conditional,
Logical, Flag Field, Qualifier, Action, SCSI Phase, and Register Name.
Keywords are written in all capital letters for clarity, but are not case
sensitive. Refer to
Chapter 4, “Using the LSI Logic Assembler NASM™,”
for detailed descriptions of individual keywords.
Table 2.4
Arithmetic Operators
Symbol
Meaning
+
addition
−
subtraction
Table 2.5
Bitwise Operators
Symbol
Meaning
&
Logical AND
|
Logical OR
XOR
Exclusive OR
SHL
Shift left
SHR
Shift right