aboutsummaryrefslogtreecommitdiffgithub
path: root/novice/assembler/opspec/word.ts
diff options
context:
space:
mode:
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) =>