aboutsummaryrefslogtreecommitdiff
path: root/example/rules.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/rules.py')
-rw-r--r--example/rules.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/rules.py b/example/rules.py
index 90d35b1..042d08a 100644
--- a/example/rules.py
+++ b/example/rules.py
@@ -1,8 +1,8 @@
g = BCGen(r = 7, f = 0)
g.rule('addr', '_RRR__', 'R0 = R1 + R2;')
-g.rule('addi', '_RR__I', 'R0 = R1 + IMM;')
-g.rule('movi', '_R___I', 'R0 = IMM;')
-g.rule('bltr', 'rRR__I', 'if (R0 < R1) JUMP(IMM);')
+g.rule('addi', '_RR__I', 'R0 = R1 + IMM0;')
+g.rule('movi', '_R___I', 'R0 = IMM0;')
+g.rule('bltr', 'rRR__I', 'if (R0 < R1) JUMP(IMM0);')
g.write()