new version
[Chiptunes-pms150c.git] / bsv.c
diff --git a/bsv.c b/bsv.c
index 7c11a37f11850e443db2691a70acd9a24820bdb5..29de26a4ce33435f337079acbcf07ced90337b9b 100644 (file)
--- a/bsv.c
+++ b/bsv.c
@@ -1 +1,13 @@
-g(i,x,t,o){return((3&x&(i*((3&i>>16?"BY}6YB6%":"Qj}6jQ6%")[t%8]+51)>>o))<<4);};main(i,n,s){for(i=0;;i++)putchar(g(i,1,n=i>>14,12)+g(i,s=i>>17,n^i>>13,10)+g(i,s/3,n+((i>>11)%3),10)+g(i,s/5,8+n-((i>>10)%3),9));}
+typedef unsigned char u8;
+
+u8 g(int i, u8 x, u8 t, u8 o){
+       return((3&x&(i*((3&i>>16?"BY}6YB6%":"Qj}6jQ6%")[t%8]+51)>>o))<<4);
+}
+void main(int i, u8 n, u8 s){
+       for(i=0;;i++) putchar(
+               g(i,1,n=i>>14,12)+
+               g(i,s=i>>17,n^i>>13,10)+
+               g(i,s/3,n+((i>>11)%3),10)+
+               g(i,s/5,8+n-((i>>10)%3),9)
+       );
+}
Imprint / Impressum