summaryrefslogtreecommitdiff
path: root/masm/asm.h
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-11 12:47:27 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-11 12:47:27 -0400
commitc1a44ed41dcf92d1567ab927d7f1675d6918aff9 (patch)
treea9c385264b6a52087856addf568c941c56a5800d /masm/asm.h
parentrefactor (diff)
downloadmips-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.h3
1 files changed, 3 insertions, 0 deletions
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 <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;