1
0
mirror of https://github.com/brouhaha/dis6502.git synced 2024-06-02 10:41:30 +00:00

don't require line numbers for equates.

This commit is contained in:
Eric Smith 2003-09-12 08:05:09 +00:00
parent 895706eae4
commit 0f0013cdc1

15
main.c
View File

@ -312,19 +312,10 @@ void get_predef (void)
while (yylex() != '\n')
;
break;
case NUMBER:
switch (yylex()) {
case LI:
case COMMENT:
while (yylex() != '\n')
;
break;
case '\n':
break;
case NAME:
name = token.sval;
if (yylex() != EQ)
crash("Only EQ and LI supported in defines file");
crash("name can only be used with equate in defines file");
if (yylex() != NUMBER)
crash("EQ operand must be a number");
loc = token.ival;
@ -338,10 +329,6 @@ void get_predef (void)
default:
crash("Invalid line in predef file");
}
break;
default:
crash("Invalid line in predef file");
}
}
void loadboot (void)