+++ /dev/null
-\r
-// This file is part of the PicoDrive Megadrive Emulator\r
-\r
-// Copyright (c) 2011 FinalDave (emudave (at) gmail.com)\r
-\r
-// This code is licensed under the GNU General Public License version 2.0 and the MAME License.\r
-// You can choose the license that has the most advantages for you.\r
-\r
-// SVN repository can be found at http://code.google.com/p/cyclone68000/\r
-\r
-// Make a Sine table\r
-\r
-#pragma warning (disable:4514)\r
-\r
-#include <stdio.h>\r
-#include <stdlib.h>\r
-#include <string.h>\r
-#include <math.h>\r
-\r
-#define PI 3.14159265358979\r
-\r
-int main()\r
-{\r
- int i=0;\r
-\r
- printf ("\nshort Sine[0x100]=\n");\r
- printf ("{\n");\r
-\r
- for (i=0;i<0x100;i++)\r
- {\r
- double fAng,fPos;\r
- int nPos;\r
- if ((i&7)==0) printf (" ");\r
- \r
- fAng=(double)i/(double)0x100;\r
- fAng*=2*PI;\r
- fPos=sin(fAng)*(double)0x4000;\r
- nPos=(int)fPos;\r
- printf ("%+6d,",nPos);\r
- \r
- if ((i&7)==7) printf ("\n");\r
- }\r
-\r
- printf ("};\n");\r
-\r
- return 0;\r
-}\r