.org in REL area or directive / mnemonic error",
" phase error: label location changing between passes 2 and 3",
" missing or improper operators, terminators, or delimiters",
" relocation error",
" undefined symbol encountered during assembly",
NULL
};
/*)Function: char *geterr(c)
*
* int c the error code character
*
* The function geterr() scans the list of errors returning the
* error string corresponding to the input error character.
*
* local variables:
* int i error index counter
*
* global variables:
* char *errors[] array of pointers to the
* error strings
* char erb[] Error string buffer
*
* functions called:
* none
*
* side effects:
* A pointer to the appropriate
* error code string is returned.
*/
char *
geterr(c)
int c;
{
int i;
for (i=0; errors[i]!=NULL; i++) {
if (c == errors[i][1]) {
return(errors[i]);
}
}
sprintf(erb, " %.*s", (int) (sizeof(erb)-5), ib);
return(erb);
}