summaryrefslogtreecommitdiff
path: root/asmmon.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2020-04-17 22:07:14 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2020-04-17 22:07:14 -0400
commit0a7a2a7a8f95730811117bd2aa904f1843f65071 (patch)
tree24d62bbdba0df124c7fe8af781312af993236ebb /asmmon.h
parentc5150ee31f07208422f1435de9b35a0d0168cbb5 (diff)
Made both the assembly language monitor, and the
emulator smaller, and faster. I am also starting to make SuBEditor's source code more readable.
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);