Last active
August 29, 2015 13:57
-
-
Save terakun/9529180 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
#define LEFT 1 | |
#define RIGHT 2 | |
main(){ | |
FILE *pio; | |
int input=0,x=72,y=26; | |
pio=fopen("pio","a+"); | |
if(pio==NULL) abort(); | |
pioset(LEFT&RIGHT); | |
line(0,27,143,47,0,0xffff,2); | |
for(;;){ | |
input=pioget(); | |
gcursor(x,y); | |
gprint(0); | |
if(input&LEFT){ | |
x--; | |
} | |
if(input&RIGHT){ | |
x++; | |
} | |
gcursor(x,y); | |
gprint("0010D63939D61000"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment