Created
March 3, 2010 00:22
-
-
Save ybakos/320154 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // WARNING: my java is rusty, so this is conceptual only. [yjb] | |
| import java.util.Hashtable; | |
| public class SymbolTable { | |
| HashTable symbols; | |
| public SymbolTable() { | |
| symbols = new Hashtable(100); | |
| } | |
| public void add_entry(String symbol, Integer address) { | |
| symbols.put(symbol, address); | |
| } | |
| // your wrapper methods here, which adhere to the assembler API | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment