Application Examples
printf("Start at memory segment (in hex) [%x] : ",DEFAULT_BASE_SEG);
gets(Input);
if (strlen(Input) == 0) {
*baseaddr = DEFAULT_BASE_SEG;
} else {
sscanf(Input,"%x",baseaddr);
}
printf("Number of pages to initialize (in decimal) [%d] : ",
DEFAULT_PAGES);
gets(Input);
if (strlen(Input) == 0) {
*pages = DEFAULT_PAGES;
} else {
sscanf(Input,"%d",pages);
}
}
/*******************************************************************/
4-6
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com