From b8f6232bb266bc895267f8dde700aa67a91207d6 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 3 Nov 2023 21:12:15 +0000 Subject: Refactor assembler to use prog_t structure Set the program structure correctly with a header using the parsed global instruction. --- asm/parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'asm/parser.h') diff --git a/asm/parser.h b/asm/parser.h index b0091d2..7aea7a2 100644 --- a/asm/parser.h +++ b/asm/parser.h @@ -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 -- cgit v1.2.3-13-gbd6f