aboutsummaryrefslogtreecommitdiff
path: root/rules.py
diff options
context:
space:
mode:
Diffstat (limited to 'rules.py')
-rw-r--r--rules.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules.py b/rules.py
new file mode 100644
index 0000000..b0aabbf
--- /dev/null
+++ b/rules.py
@@ -0,0 +1,4 @@
+g = BCGen(r = 7, f = 6, head='gbreg_t t = 0;')
+g.rule('addr', '_RRR__', 'R0 = R1 + R2;')
+g.rule('addr_f', '_FFF__', 'F0 = F1 + F2;')
+g.rule('bltr', 'rRR__I', 'if (R0 < R1) JUMP(IMM);')