diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2020-04-17 22:07:14 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2020-04-17 22:07:14 -0400 |
commit | 0a7a2a7a8f95730811117bd2aa904f1843f65071 (patch) | |
tree | 24d62bbdba0df124c7fe8af781312af993236ebb /asmmon.h | |
parent | c5150ee31f07208422f1435de9b35a0d0168cbb5 (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.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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); |