From c1a44ed41dcf92d1567ab927d7f1675d6918aff9 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Wed, 11 Sep 2024 12:47:27 -0400 Subject: add ascii and asciiz directives, fix symtab bug --- masm/asm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'masm/asm.h') diff --git a/masm/asm.h b/masm/asm.h index c8a6394..267aa1c 100644 --- a/masm/asm.h +++ b/masm/asm.h @@ -7,6 +7,7 @@ #include #include +#include "mlimits.h" #include "parse.h" #include "lex.h" @@ -102,6 +103,7 @@ enum section_entry_type { ENT_WORD, ENT_HALF, ENT_BYTE, + ENT_STR, ENT_NO_DATA, }; @@ -117,6 +119,7 @@ struct section_entry { // data struct mips_instruction ins; + char str[MAX_LEX_LENGTH]; int32_t word; int16_t half; int8_t byte; -- cgit v1.2.3-freya