Motorola CPU32 Reference Manual page 252

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

Advertisement

4.6.3 Table Example 3: a-Bit Independent Variable
!::I
!:¥
~
I-
Z
W
o
z
W
0..
W
o
£;
1024
2048
3072
x
INDEPENDENT VARIABLE
Figure 4-5. Table Example 3
4096
This example shows how to use a table instruction within an interpolation
subroutine. Independent variable X is calculated as an 8-bit value, allowing 16
levels of interpolation on a 17-entry table. X is passed to the subroutine, which
returns an 8-bit result. The subroutine uses the following data, based on the
function shown in Figure 4-5.
CPU32 REFERENCE MANUAL
INSTRUCTION SET
MOTOROLA
4-199
III

Advertisement

Table of Contents
loading

Table of Contents