Motorola CPU32 Reference Manual page 250

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

The table instruction is executed with the following bit pattern in Dx:
31
16
15
0
NOT USED
1 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 1
Table Entry Offset
~
Ox [8:15]
=
$A3
=
163
Interpolation Fraction
~
Dx [0:7]
=
$80
=
128
Using this information, the table instruction calculates dependent variable Y:
Y
=
1669 + (128 (1679 -1669)) /256
=
1674
4.6.2 Table Example 2: Compressed Table
~
~
~
I-
:z
w
o
:z
w
a..
w
o
y
CPU32 REFERENCE MANUAL
256
512
786
INDEPENDENT VARIABLE
Figure 4-4. Table Example 2
INSTRUCTION SET
1024
MOTOROLA
4-197

Advertisement

Table of Contents
loading

Table of Contents