git://git.gir.st
/
Chiptunes-pms150c.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3a565e
)
new version
author
Tobias Girstmair
<tobi@isticktoit.net>
Wed, 3 Mar 2021 23:26:52 +0000
(
00:26
+0100)
committer
Tobias Girstmair
<tobi@isticktoit.net>
Wed, 3 Mar 2021 23:26:52 +0000
(
00:26
+0100)
bsv.c
patch
|
blob
|
blame
|
history
diff --git
a/bsv.c
b/bsv.c
index 29de26a4ce33435f337079acbcf07ced90337b9b..1b39eff339e5eee817679f2ef643324c763f430e 100644
(file)
--- a/
bsv.c
+++ b/
bsv.c
@@
-1,7
+1,9
@@
typedef unsigned char u8;
+u8 notes[] = "Qj}6jQ6%BY}6YB6%";
+
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);
+ return((3&x&(i*(
notes[t%8 + 8*!!(3&i>>16)
]+51)>>o))<<4);
}
void main(int i, u8 n, u8 s){
for(i=0;;i++) putchar(