mirror of
https://github.com/Alvin-Zilverstand/bob16.git
synced 2026-11-28 13:57:49 +01:00
hopefully fix empty line bug
This commit is contained in:
1 parent
121b632fb0
commit
7f423ccc9d
1 file changed
+5
@@ -440,6 +440,11 @@ int assemble() {
|
|||||||
token = strtok(NULL, " \t\n");
|
token = strtok(NULL, " \t\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tokenCount == 0) {
|
||||||
|
lineCount++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (strcmp(tokens[0], ".fill") == 0) {
|
if (strcmp(tokens[0], ".fill") == 0) {
|
||||||
if (tokenCount != 2) {
|
if (tokenCount != 2) {
|
||||||
printf("Wrong amount of tokens on line %d!\n", lineCount);
|
printf("Wrong amount of tokens on line %d!\n", lineCount);
|
||||||
|
|||||||
Reference in new issue
Block a user