English
Language : 

NS32FV16 Datasheet, PDF (18/104 Pages) Texas Instruments – Advanced Imaging/Communication Signal Processors
2 0 Architectural Description (Continued)
TABLE 2-2 NS32FX164 Instruction Set Summary (Continued)
INTEGER COMPARISON
Format
Operation
Operands
Description
4
CMPi
gen gen
Compare
2
CMPQi
short gen
Compare to signed 4-bit constant
7
CMPMi
gen gen disp
Compare multiple disp bytes (1 to 16)
LOGICAL AND BOOLEAN
Format
Operation
Operands
Description
4
ANDi
gen gen
Logical AND
4
ORi
gen gen
Logical OR
4
BICi
gen gen
Clear selected bits
4
XORi
gen gen
Logical exclusive OR
6
6
2
SHIFTS
Format
6
6
te 6
COMi
NOTi
Scondi
Operation
LSHi
ASHi
ROTi
gen gen
gen gen
gen
Operands
gen gen
gen gen
gen gen
Complement all bits
Boolean complement LSB only
Save condition code (cond) as a Boolean variable of size i
Description
Logical shift left or right
Arithmetic shift left or right
Rotate left or right
BIT FIELDS
Bit fields are values in memory that are not aligned to byte boundaries Examples are PACKED arrays and records used in
Pascal ‘‘Extract’’ instructions read and align a bit field ‘‘Insert’’ instructions write a bit field from an aligned source
Format Operation Operands
Description
le 8
8
7
7
8
ARRAYS
Format
o 8
8
EXTi
INSi
EXTSi
INSSi
CVTP
Operation
CHECKi
INDEXi
reg gen gen disp
reg gen gen disp
gen gen imm imm
gen gen imm imm
reg gen gen
Operands
reg gen gen
reg gen gen
Extract bit field (array oriented)
Insert bit field (array oriented)
Extract bit field (short form)
Insert bit field (short form)
Convert to bit field pointer
Description
Index bounds check
Recursive indexing step for multiple-dimensional arrays
STRINGS
s String instructions assign specific functions to the General
Purpose Registers
R4 Comparison Value
R3 Translation Table Pointer
R2 String 2 Pointer
b R1 String 1 Pointer
O R0 Limit Count
Options on all string instructions are
B (Backward)
Decrement string pointers after each
step rather than incrementing
U (Until match) End instruction if String 1 entry matches
R4
W (While match) End instruction if String 1 entry does not
match R4
All string instructions end when R0 decrements to zero
17