- Add `.error` and `.warning` directives
- Add failing tests for most failure cases
- Assert `.section` in full test
+- Add `.bank.` directive allowing users to set the current bank number (ulas.bank) which can be used for symbol files.
fprintf(dst, "\n");
break;
case ULAS_SYM_FMT_SYM:
- fprintf(dst, "00:");
+ fprintf(dst, "%02d:", ulas.bank);
switch (s->tok.type) {
case ULAS_INT:
char charcodemap[ULAS_CHARCODEMAPLEN];
char section[ULAS_SECTIONMAX];
// where was the section defined?
- unsigned int section_address;
-
+ unsigned int section_address;
+
+ // active bank
+ unsigned int bank;
+
struct ulas_arch arch;
};