2 // This file is part of the PicoDrive Megadrive Emulator
\r
4 // This code is licensed under the GNU General Public License version 2.0 and the MAME License.
\r
5 // You can choose the license that has the most advantages for you.
\r
7 // SVN repository can be found at http://code.google.com/p/cyclone68000/
\r
11 #pragma warning (disable:4514)
\r
18 #define PI 3.14159265358979
\r
24 printf ("\nshort Sine[0x100]=\n");
\r
27 for (i=0;i<0x100;i++)
\r
31 if ((i&7)==0) printf (" ");
\r
33 fAng=(double)i/(double)0x100;
\r
35 fPos=sin(fAng)*(double)0x4000;
\r
37 printf ("%+6d,",nPos);
\r
39 if ((i&7)==7) printf ("\n");
\r