From ad1b0ab4509711803dbfff758026858abec65104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Wed, 26 Jan 2022 22:05:41 +0100 Subject: fix ar?x->ar --- lab1ucode.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lab1ucode.py') diff --git a/lab1ucode.py b/lab1ucode.py index e9b0fc1..3def9b8 100644 --- a/lab1ucode.py +++ b/lab1ucode.py @@ -76,21 +76,21 @@ def compile(lines): if "+" in fr: if "+'" in fr: # ignore flags - other = fr.split("+'")[0] + other = fr.split("+'")[1] alu = "1000" else: - other = fr.split("+")[0] + other = fr.split("+")[1] alu = "0100" tb = TB[other] # alu subtraction if "-" in fr: - other = fr.split("-")[0] + other = fr.split("-")[1] tb = TB[other] alu = "0101" if "&" in fr: - other = fr.split("&")[0] + other = fr.split("&")[1] tb = TB[other] alu = "0110" -- cgit v1.2.1