141
4
4 Instructions 4.4.4 Table Operations
The instruction is executed as follows:
Output value [D]
Point 1
Point 2
Point 3
Point 4
Point 5
X
Y
[S]
Input value
Valid input range
The [S2] data organizational form in the 16-bit instruction is as follows:
Setting
Element Assignment for the
Data Table
Assume that the number of coordinate
points is 5.
[S2]
X coordinate
Point 1 [S2+1]
Point 2 [S2+2]
Point 3 [S2+3]
Point 4 [S2+4]
Point 5 [S2+5]
Y coordinate
Point 1 [S2+6]
Point 2 [S2+7]
Point 3 [S2+8]
Point 4 [S2+9]
Point 5 [S2+10]
2) 32-bit instruction
The output value in [D+1, D] that corresponds to the input value in [S1+1, S1] is identied based on the
graph determined by the table in [S2+1, S2]. If the output value is not an integer, the rst digit of the
fractional part is rounded.
The [S2+1, S2] data organizational form in the 32-bit instruction is as follows:
Setting Element Assignment for the
Data Table
Assume that the number of coordinate
points is 5.
[S2, S2+1]
X coordinate
Point 1 [S2+3, S2+2]
Point 2 [S2+5, S2+4]
Point 3 [S2+7, S2+6]
Point 4 [S2+9, S2+8]
Point 5 [S2+11, S2+10]
Y coordinate
Point 1 [S2+13, S2+12]
Point 2 [S2+15, S2+14]
Point 3 [S2+17, S2+16]
Point 4 [S2+19, S2+18]
Point 5 [S2+21, S2+20]