Application Note
Source Code
AN1288
48
MOTOROLA
void command line_error_box(void)
{
int i; // counter variable
// message box character array
char text[11][80]={"***********************ERROR***********************",
"* *",
"* *",
"* Incorrect command line parameters were entered. *",
"* Use the following syntax to envoke this program: *",
"* k3eeprog [Emulator Type] [COM Port]. *",
"* Type the following for the Emulator Type option: MMDS05 or EVS05 *",
"* Type the following for the Com Port option: 2 COM2 3 COM3 4 COM4 *",
"* (COM1 is the default) *",
"* *",
"********************************************************************"};
// Clear the screen and sound a beep.
clrscr();
beep();
// Display error box.
for(i=0;i<12;i++)
print_center(i+7,text[i]);
print_center(18,"PRESS ANY KEY TO EXIT TO DOS");
// Wait for the user to hit any key.
while(!getch())
;
// Close the error box.
clrscr();
return;
}
/* memory_error_box function
*
* Function input variables: None
*
* Function outputs: None
*
* This function displays a screen informing the user that he/she has
* made an error in entering command line parameters.
*
*/