summaryrefslogtreecommitdiff
path: root/asmmon.h
diff options
context:
space:
mode:
Diffstat (limited to 'asmmon.h')
-rw-r--r--asmmon.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/asmmon.h b/asmmon.h
index cc21c14..a126f16 100644
--- a/asmmon.h
+++ b/asmmon.h
@@ -185,26 +185,25 @@ char *comment[0x1000];
struct line tokline[0x1000];
struct fixup {
- struct fixup *nxt;
struct symbol *s;
uint16_t ln;
uint64_t adr;
};
struct symbol {
- struct symbol* nxt;
uint64_t val;
uint8_t def;
char name[128];
uint16_t id;
};
-extern struct symbol *symbols;
-extern struct fixup *fixups;
+struct symbol *symbols[0x1000];
+struct fixup *fixups[0x1000];
extern uint8_t defined;
extern uint8_t isfixup;
-extern struct symbol *mksymbol(const char *name, uint64_t val, uint8_t def, uint8_t useid, uint16_t id, uint8_t dbg);
+extern void init_symbol();
+extern uint16_t mksymbol(const char *name, uint64_t val, uint8_t def, uint8_t useid, uint16_t id, uint8_t dbg);
extern uint64_t use_symbol(const char *name, uint16_t id, uint64_t val, uint8_t useid, uint8_t dbg);
extern uint8_t set_symval(const char *name, uint16_t id, uint64_t val, uint8_t useid, uint8_t dbg);
extern char *get_symname(uint16_t id, uint8_t dbg);