Refactor assembler to use prog_t structure

Set the program structure correctly with a header using the parsed
global instruction.
This commit is contained in:
2023-11-03 21:12:15 +00:00
parent 92f4f9011d
commit b8f6232bb2
3 changed files with 31 additions and 26 deletions

View File

@@ -59,7 +59,7 @@ typedef struct
label_t search_labels(label_t *, size_t, char *);
perr_t parse_next(token_stream_t *, presult_t *);
perr_t process_presults(presult_t *, size_t, inst_t **, size_t *);
perr_t parse_stream(token_stream_t *, inst_t **, size_t *);
perr_t process_presults(presult_t *, size_t, prog_t **);
perr_t parse_stream(token_stream_t *, prog_t **);
#endif