aboutsummaryrefslogtreecommitdiffgithub
path: root/novice/simulator/symbols.ts
diff options
context:
space:
mode:
Diffstat (limited to 'novice/simulator/symbols.ts')
-rw-r--r--novice/simulator/symbols.ts11
1 files changed, 11 insertions, 0 deletions
diff --git a/novice/simulator/symbols.ts b/novice/simulator/symbols.ts
new file mode 100644
index 0000000..997f374
--- /dev/null
+++ b/novice/simulator/symbols.ts
@@ -0,0 +1,11 @@
+import { SymbTable } from '../isa';
+
+interface Symbols {
+ hasSymbol(symb: string): boolean;
+ setSymbol(symb: string, addr: number): void;
+ setSymbols(symbtable: SymbTable): void;
+ getSymbolAddr(symb: string): number;
+ getAddrSymbols(addr: number): string[];
+}
+
+export { Symbols };