mirror of
https://github.com/VARCem/asm6502.git
synced 2026-09-25 08:06:40 +00:00
fix directive_binary
This commit is contained in:
@@ -315,7 +315,7 @@ char *err_msg[] = {
|
||||
"string expected",
|
||||
"can not read file",
|
||||
"maximum file stack size exceeded",
|
||||
"byte sized value expected",
|
||||
"byte sized value expected"
|
||||
};
|
||||
|
||||
#define ERROR_NORM 1
|
||||
@@ -445,11 +445,6 @@ void skip_curr_and_white(char **p)
|
||||
}
|
||||
}
|
||||
|
||||
int first_number(char c)
|
||||
{
|
||||
return c == '$' || c == '%' || isdigit(c);
|
||||
}
|
||||
|
||||
value number(char **p)
|
||||
{
|
||||
value num= {0,0};
|
||||
@@ -1250,7 +1245,7 @@ void directive_binary(char **p, int pass)
|
||||
skip_white(p);
|
||||
if (**p == ',') {
|
||||
skip_curr_and_white(p);
|
||||
if (first_number(**p)) skip = expr(p);
|
||||
skip = expr(p);
|
||||
skip_white(p);
|
||||
if (**p == ',') {
|
||||
skip_curr_and_white(p);
|
||||
|
||||
Reference in New Issue
Block a user