tokenize_asoft: fix some minor issues found by qkumba code

don't need space after line number
quotes, especially those in REM statements end at end of line
This commit is contained in:
Vince Weaver 2020-10-04 12:43:05 -04:00
parent 13aed3fe6f
commit 9a6ef1a7ae

View File

@ -100,9 +100,11 @@ static int get_line_num(int *linenum, int *custom_offset) {
while (*line_ptr>' ') {
if ((*line_ptr<'0')||(*line_ptr>'9')) {
fprintf(stderr,"Invalid line number line %d\n",line);
show_problem(line_ptr);
exit(-1);
// fprintf(stderr,"Invalid line number line %d\n",line);
// show_problem(line_ptr);
// exit(-1);
/* not a bug */
break;
}
num*=10;
num+=(*line_ptr)-'0';
@ -287,6 +289,9 @@ int main(int argc, char **argv) {
/* remarks end at end of line */
in_rem=0;
/* quotes do too */
in_quotes=0;
/* 2 bytes is to ignore size from beginning of file */
link_value=0x801+(offset-2);