Implementation of the basic functionality of An Assembler, conversion of assembly code to machine code.
This code has two part.
Use the hash table to store user-defined symbol, opcode and register's inforamation.
Check for valid syntax and convert the assembly code to machine code.
1.computeHash(key)--Computes a hashindex forgiven key
2.hasKey(key)--Returns true if key is stored in Table else False
3.addRecord(key,Object)--Inserts a new record into the table
4.getRecord(key)--Returns a record corresponding to the given key
5.replaceRecord(key,Object)--Replaces the record for given key
Collision handling strategy:- Separate Chaining
1.saveToFile(filename, HashTable)--Save the hash table to a file for later use.
2.loadFromFile(filename)--load a hash table previously stored in the input file