TESTEND("intexpr");
}
+void test_asminstr(void) {
+ TESTBEGIN("asminstr");
+
+ TESTEND("asminstr");
+}
+
int main(int arc, char **argv) {
ulas_init(ulas_cfg_from_env());
test_preproc();
test_totok();
test_intexpr();
+ test_asminstr();
ulas_free();
goto end;
}
- // empty tokens are going to be ignored
+ // empty tokens are going to be ignored
if (strnlen(ulas.tok.buf, ulas.tok.maxlen) == 0) {
continue;
}
return -1;
}
-
// execute the tree of expressions
return ulas_intexpreval(expr, rc);
}
+int ulas_asminstr(FILE *dst, const char *line, unsigned long n) {
+ int rc = 0;
+
+ return rc;
+}
+
int ulas_asmline(FILE *dst, FILE *src, const char *line, unsigned long n) {
const char *start = line;
int rc = 0;
} else {
// is regular line in form of [label:] instruction ; comment
+ if (ulas_asminstr(dst, line, n) == -1) {
+ ULASERR("Unable to assemble instruction\n");
+ rc = -1;
+ goto fail;
+ }
}
fail: