projects
/
snes_test1
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
vertical wave
[snes_test1]
/
sintab
/
sintab.c
1
#include <stdio.h>
2
#include <math.h>
3
4
int main(void)
5
{
6
int i;
7
8
printf("sintab:\n");
9
for(i=0; i<256; i++) {
10
float s = sin(i * 2.0 * M_PI / 256.0) * 0.5 + 0.5;
11
printf("\t.byte %d\n", (int)(s * 255.0));
12
}
13
}