-
-
Save jarikomppa/93fb87fe56ff5b9b838c 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 <string.h> | |
unsigned char fbcopy_idx; | |
unsigned char sin_idx; | |
#include "tab.h" | |
#include "s.h" | |
unsigned char *bufp; | |
void fbcopy(unsigned char * src) | |
{ | |
for (fbcopy_idx = 0; fbcopy_idx < 192; fbcopy_idx++, src+=32) | |
{ | |
memcpy((void*)yofs[fbcopy_idx], src, 32); | |
} | |
} | |
void main() | |
{ | |
sin_idx = 0; | |
while(1) | |
{ | |
sin_idx++; | |
bufp = s_png; | |
bufp += sinofs[sin_idx]; | |
fbcopy(bufp); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment