Skip to content

Instantly share code, notes, and snippets.

@ybakos
Created March 3, 2010 00:22
Show Gist options
  • Select an option

  • Save ybakos/320154 to your computer and use it in GitHub Desktop.

Select an option

Save ybakos/320154 to your computer and use it in GitHub Desktop.
// 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