Programming Examples
Appendix B
B-35
printf(”\nTotal bytes downloaded to dual port: %04x\n”, length);
}
return(0);
}
void usage(char *argv[])
{
printf(”Usage:\n”);
if (strrchr(argv[0], ’\\’))
printf(”%s –a<xx> –f<nnnnnnnn.eee> [–d]\n”, strrchr(argv[0], ’\\’) + 1);
else
printf(”%s –a<xx> –f<nnnnnnnn.eee> [–d]\n”, argv[0]);
printf(” Where: xx ––> Upper byte of address of KTX board (e.g. D3)\n”);
printf(” nnnnnnnn.eee ––> File name of binary to download\n”);
printf(” –d ––> Required to download file directly to dualport\n”);
printf(” The diagnostic files require this switch.\n”);
}