diff options
author | Freya Murphy <freya@freyacat.org> | 2024-09-11 12:47:27 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2024-09-11 12:47:27 -0400 |
commit | c1a44ed41dcf92d1567ab927d7f1675d6918aff9 (patch) | |
tree | a9c385264b6a52087856addf568c941c56a5800d /masm/asm.h | |
parent | refactor (diff) | |
download | mips-c1a44ed41dcf92d1567ab927d7f1675d6918aff9.tar.gz mips-c1a44ed41dcf92d1567ab927d7f1675d6918aff9.tar.bz2 mips-c1a44ed41dcf92d1567ab927d7f1675d6918aff9.zip |
add ascii and asciiz directives, fix symtab bug
Diffstat (limited to 'masm/asm.h')
-rw-r--r-- | masm/asm.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -7,6 +7,7 @@ #include <elf.h> #include <mips.h> +#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; |