aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-07-08 13:56:52 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-07-08 13:56:52 +0300
commit1eebb49331261a680b6f456e5b008cb1cc9256d4 (patch)
tree6dce62c21f36ff0a5a01876a63d5aaa394b1739b
parentf93cbdcfa01bfa40c413d6df654957c68f067a0a (diff)
downloadbcgen-1eebb49331261a680b6f456e5b008cb1cc9256d4.tar.gz
bcgen-1eebb49331261a680b6f456e5b008cb1cc9256d4.zip
fix registers > 9
-rwxr-xr-xbcgen2
1 files changed, 1 insertions, 1 deletions
diff --git a/bcgen b/bcgen
index aeb5f56..8c45345 100755
--- a/bcgen
+++ b/bcgen
@@ -67,7 +67,7 @@ def gen_cond(r, i):
if r == '':
return '1'
- return 'a' + str(i) + ' == ' + r[1]
+ return 'a' + str(i) + ' == ' + r[1:]
def gen_select_instance(f, name, r0, r1, r2, r3):
c0 = gen_cond(r0, 0)