aboutsummaryrefslogtreecommitdiffgithub
path: root/novice/simulator
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/simulator
parent9958e4e7edc63e12bfa93349338347f8de9a977b (diff)
downloadnovice-66b7b8fac57f61ecb0d259f0b25830bffdb5f6d5.tar.gz
novice-66b7b8fac57f61ecb0d259f0b25830bffdb5f6d5.tar.xz
Make opspec, isa properties of a machine code generator
Diffstat (limited to 'novice/simulator')
-rw-r--r--novice/simulator/simulator.ts1
1 files changed, 0 insertions, 1 deletions
diff --git a/novice/simulator/simulator.ts b/novice/simulator/simulator.ts
index b006841..dbeeeea 100644
--- a/novice/simulator/simulator.ts
+++ b/novice/simulator/simulator.ts
@@ -293,7 +293,6 @@ class Simulator {
if (field.kind === 'reg') {
fields.regs[field.name] = [field.prefix, val];
} else if (field.kind === 'imm') {
- // TODO: probs should be helper function
if (field.sext) {
val = sextTo(val, numBits);
}