aboutsummaryrefslogtreecommitdiff
path: root/example/rules.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/rules.py')
-rw-r--r--example/rules.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/rules.py b/example/rules.py
index 9c8d62e..90d35b1 100644
--- a/example/rules.py
+++ b/example/rules.py
@@ -1,5 +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.write()