Continued to add symbol support.
commit6cf6246f9efd6d58a8aa51cdaa85c0f96dc42c43
authorSteven Schronk <steven@schronk.com>
Sat, 6 Feb 2010 04:46:41 +0000 (5 22:46 -0600)
committerSteven Schronk <steven@schronk.com>
Sat, 6 Feb 2010 04:46:41 +0000 (5 22:46 -0600)
tree855138a1c030485aca753e7bf9d6c498edca100e
parent3a6e191cc68d814c15122a6d55e0565eff2017a3
Continued to add symbol support.

Moved load_symbols code into main function.
Added reset_buffer function that moves current_command
pointer back to beginning of input buffer. This was
required as the has_more_commands and advance functions
are now used to travel through the code twice.

Function enc_symbol now passes an integer value instead of
an array of type char.

Function symbol no longer requires an array. Now converts chars
into an integer and returns int value to caller.

New function symbol_load pushes symbols into the hash array.
Uses new rom_address as location for symbol.

Address for RAM has been created, but not fully implemented.
asm.c
code.c
code.h
parse.c
parse.h
symbol.c
symbol.h