Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/assemble.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ uint16_t preorig (filearr_t f, uint32_t *ln, arrs_t *arrs)
warning (i, "'%s' is only used in project mode", token[0]->str);
break;
default:
warning (i, "Ignoring invalid token '%s' before '.ORIG'",
error (i, "Invalid token '%s' before '.ORIG'",
token[0]->str);
break;
}
Expand Down Expand Up @@ -216,7 +216,7 @@ uint8_t passone (uint32_t ln, uint16_t *addr, TokenBuffer *buf, arrs_t *arrs)
} else if (pop == FILL) {
*addr += 1;
} else {
warning (ln, "Ignoring unexpected use of '%s' in program body",
error (ln, "Unexpected use of '%s' in program body",
token[j]->str);
}
} else if (isregister (token[j]) >= 0) {
Expand All @@ -238,7 +238,7 @@ uint8_t passone (uint32_t ln, uint16_t *addr, TokenBuffer *buf, arrs_t *arrs)
if (opnum == -1) {

} else if (opcount > opnum) {
warning (ln, "'%s' expects %d operands", tok, opnum);
error (ln, "'%s' expects %d operands", tok, opnum);
} else if (opcount < opnum) {
error (ln, "'%s' expects %d operands", tok, opnum);
}
Expand Down Expand Up @@ -526,7 +526,7 @@ uint8_t passtwo (uint32_t tbufind, uint16_t *addr, arrs_t *arrs)
case IMPORT:
if (isproject ()) break;
default:
warning (ln, "Ignoring unexpected use of '%s' in program body",
error (ln, "Unexpected use of '%s' in program body",
token[0]->str);
break;
}
Expand Down