aboutsummaryrefslogtreecommitdiffgithub
path: root/novice/assembler/opspec/word.ts
diff options
context:
space:
mode:
authorAustin Adams <git@austinjadams.com>2019-02-04 16:00:30 -0500
committerAustin Adams <git@austinjadams.com>2019-02-04 16:00:30 -0500
commit94c265ea9eb5fe7969efc88f5c5bc43cb4c00958 (patch)
treeeb679410a7f7ceaa54d4fa4fb4b137c980c33986 /novice/assembler/opspec/word.ts
parent66b7b8fac57f61ecb0d259f0b25830bffdb5f6d5 (diff)
downloadnovice-94c265ea9eb5fe7969efc88f5c5bc43cb4c00958.tar.gz
novice-94c265ea9eb5fe7969efc88f5c5bc43cb4c00958.tar.xz
Codegen: do fewer painful agonizing O(n) lookups
Diffstat (limited to 'novice/assembler/opspec/word.ts')
-rw-r--r--novice/assembler/opspec/word.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/novice/assembler/opspec/word.ts b/novice/assembler/opspec/word.ts
index 4125045..d9866ff 100644
--- a/novice/assembler/opspec/word.ts
+++ b/novice/assembler/opspec/word.ts
@@ -3,13 +3,13 @@ import { AsmContext, oneWord, OpOperands, PseudoOpSpec } from './opspec';
const wordOpSpec: PseudoOpSpec = {
ops: [
- {name: 'word',
+ {op: 'word',
operands: [{kind: 'int', name: 'num'}],
asm: (ctx: AsmContext, operands: OpOperands) =>
// TODO: complain if too big
[maskTo(operands.ints.num, ctx.isa.mem.addressability)]},
- {name: 'word',
+ {op: 'word',
operands: [{kind: 'label', name: 'label'}],
size: oneWord,
asm: (ctx: AsmContext, operands: OpOperands) =>