/****************************************************************
*	Mario chip test MAP file convert			*
****************************************************************/

#include	<stdio.h>
#include	<math.h>

main(argc, argv)
{
	double          a, b, c, d, x, y, z;
	int             i, j;

	a = 0;
	b = 0;
	c = 0;
	x = 0;
	y = 0;
	z = 0;
	j = (-60);
	for (i = 0; i < 0x200; i++) {
		x = sin(a);
		y = cos(b);
		z = tan(x + y);
		d = z;
		d = d * 0x2a;
		a = a + 3.141592654 / 0x80;
		b = b + 3.141592654 / 0x80;
		c = c + 3.141592654 / 0x80;
		d = ((-60 * 0x80) / (j + 0x80)) & 0xff;
		j++;
		if (!(i & 0x7)) {
			printf("\n\t\tWORD\t\t%03d", (int) d);
		} else {
			printf(",%03d", (int) d);
		}
	}
	printf("\n");
}
