From 0a7a2a7a8f95730811117bd2aa904f1843f65071 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 17 Apr 2020 22:07:14 -0400 Subject: Made both the assembly language monitor, and the emulator smaller, and faster. I am also starting to make SuBEditor's source code more readable. --- asmmon.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'asmmon.h') 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); -- cgit v1.2.3-13-gbd6f