Skip to content

Instantly share code, notes, and snippets.

@andrueastman
Created December 7, 2016 12:09
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 andrueastman/7ba65bc9f39794caef7fe5d8de360c0a to your computer and use it in GitHub Desktop.
Save andrueastman/7ba65bc9f39794caef7fe5d8de360c0a to your computer and use it in GitHub Desktop.
Interesting bug. :(
leng = (scratchpad[1]*2);
for (j=0,i=0;i<leng,j<scratchpad[1];j++,i+=2)
{
scratchpad[2+j] = ascii2hex( buffer[DATA+7+i], buffer[DATA+8+i]);
temp_length = sprintf( (char*)&scratchpad[0], (const rom far void *)"PROCESSED_3:%02x:%02x",scratchpad[2+j]);
testif_write( scratchpad,temp_length );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment