Created
February 28, 2015 21:07
-
-
Save reidrac/c7b3184e5921f7a1a491 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "d64.h" | |
int | |
main() | |
{ | |
uint8_t r; | |
clrscr(); | |
while(1) | |
{ | |
// module is slow, using AND instead | |
r = rand() & 3; | |
putch(176 + (r > 2 ? 1 : r)); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment