Created function to load symbols from source.
commit3a6e191cc68d814c15122a6d55e0565eff2017a3
authorSteven Schronk <steven@schronk.com>
Sat, 30 Jan 2010 04:50:44 +0000 (29 22:50 -0600)
committerSteven Schronk <steven@schronk.com>
Sat, 30 Jan 2010 04:50:44 +0000 (29 22:50 -0600)
treee051adcf9e0843a4883992884d34d8a916196ad4
parentd6ec9a3f025c178e5d3f123c722267e08147d744
Created function to load symbols from source.

Function load_symbols adds built-in symbols from code
then looks through all input source for symbols. These
are added to the symbol hash table.

Maximum symbol length has been set to 256. This should
be plenty long for normal use.

NOTE: This version has a bug.
When the symbol table already contains a symbol at that
hash, the add_entry function should look through table for
a place to put the next symbol.  It does not do this
correctly, and therefore does not really fill up the
hash table.
asm.c
parse.c
parse.h
symbol.c
symbol.h