
Motorola CPU32 TBL Instruction Howto and Example
------------------------------------------------

This packages offers an example of how to use CPU32 table lookup instruction.
The example shows how to approximation the sinus and cosinus functions in 
the [-pi/2,pi/2] domain with a maximal error of 10E-6. 

main.c: C code for the function sina that inputs an angle in radian on a
32-bit integers with a number representation 4.28 bits and outputs 
the result with the same representation. Given with a simple main.

sina.S: Assembler code that uses the TBL instruction. It takes as input 
a 32-bit integer with a number representation 0.32 bits and ouputs a 
number with a number representation 0.32 bits. This representation
allows a better precision.

sina.i: Assembler header that contains the table needed by TBL.

sina.m: MATLAB code used to generate the assembler header.

---
Copyright (C) 2000 by K-Team, S.A. All rights reserved.

Developed at K-Team S.A by Olivier Carmona.

Permission to use, copy, modify, and distribute this
software is freely granted, provided that this notice
is preserved.

There is no warranty for this free software.  If the software is modified
by someone else and passed on, we want its recipients to know that
what they have is not the original, so that any problems introduced
by others will not reflect on the original authors' reputations.

