aboutsummaryrefslogtreecommitdiffgithub
path: root/novice/assembler/codegen/codegen.ts
diff options
context:
space:
mode:
authorAustin Adams <git@austinjadams.com>2019-02-04 15:31:54 -0500
committerAustin Adams <git@austinjadams.com>2019-02-04 15:31:54 -0500
commit66b7b8fac57f61ecb0d259f0b25830bffdb5f6d5 (patch)
tree568844f0bc57d4ffc57405de6343221132290557 /novice/assembler/codegen/codegen.ts
parent9958e4e7edc63e12bfa93349338347f8de9a977b (diff)
downloadnovice-66b7b8fac57f61ecb0d259f0b25830bffdb5f6d5.tar.gz
novice-66b7b8fac57f61ecb0d259f0b25830bffdb5f6d5.tar.xz
Make opspec, isa properties of a machine code generator
Diffstat (limited to 'novice/assembler/codegen/codegen.ts')
-rw-r--r--novice/assembler/codegen/codegen.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/novice/assembler/codegen/codegen.ts b/novice/assembler/codegen/codegen.ts
index 290a11f..7ea3d21 100644
--- a/novice/assembler/codegen/codegen.ts
+++ b/novice/assembler/codegen/codegen.ts
@@ -1,9 +1,7 @@
-import { Assembly, Isa, MachineCodeSection, SymbTable } from '../../isa';
-import { PseudoOpSpec } from '../opspec';
+import { Assembly, MachineCodeSection, SymbTable } from '../../isa';
interface MachineCodeGenerator {
- gen(isa: Isa, opSpec: PseudoOpSpec, asm: Assembly):
- [SymbTable, MachineCodeSection[]];
+ gen(asm: Assembly): [SymbTable, MachineCodeSection[]];
}
export { MachineCodeGenerator };