noiseplug/avr/sound.c

19 lines
183 B
C
Raw Normal View History

2012-07-31 21:42:53 +02:00
int main(r)
{
unsigned short rnd = 13373;
while(1)
{
unsigned char f1 = (rnd&(3<<13))>>13;
unsigned char f2 = (rnd&(3<<10))>>10;
rnd <<=1;
rnd |= f1^f2;
putchar(rnd);
}
}