mirror of
https://github.com/brouhaha/dis6502.git
synced 2024-06-15 19:29:28 +00:00
don't require line numbers for equates.
This commit is contained in:
parent
895706eae4
commit
0f0013cdc1
15
main.c
15
main.c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user