Skip to content

Instantly share code, notes, and snippets.

@duckinator
Created September 5, 2015 22:19
Show Gist options
  • Save duckinator/df44c7d357f313027062 to your computer and use it in GitHub Desktop.
Save duckinator/df44c7d357f313027062 to your computer and use it in GitHub Desktop.
coroutine(something)
LOOP(1) {
play(quieter(i * (i >> 10 | i >> 3)));
yield();
play(i * (i >> 6 | i >> 4));
yield();
}
end
int something (int reset) { static int first_state = 1, state = 1; if (reset) { state = first_state; }; switch(state) { case 1:;
int _end = i + (1 * 8000); for (; i < _end; i++) {
do { putchar(( ((( ((i * (i >> 10 | i >> 3)) & 0xFF) >> 2)) & 0xFF) >> 2)); i++; } while(0);
do { state = 4; return 0; case 4:; } while (0);
do { putchar(( ((i * (i >> 6 | i >> 4)) & 0xFF) >> 2)); i++; } while(0);
do { state = 6; return 0; case 6:; } while (0);
}
state = first_state; return 1; }; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment