Skip to content

Instantly share code, notes, and snippets.

@jarikomppa
Created September 29, 2015 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarikomppa/93fb87fe56ff5b9b838c to your computer and use it in GitHub Desktop.
Save jarikomppa/93fb87fe56ff5b9b838c to your computer and use it in GitHub Desktop.
#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