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