diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2022-01-26 22:05:41 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2022-01-26 22:05:41 +0100 |
| commit | ad1b0ab4509711803dbfff758026858abec65104 (patch) | |
| tree | b394da203ca5b08b33fd436d17bfd9eeb23b0c80 /lab1ucode.py | |
| parent | 44a5c3168627fdd21627454148f92daaa5bf4f2c (diff) | |
| download | tsea83-ad1b0ab4509711803dbfff758026858abec65104.tar.gz | |
fix ar?x->ar
Diffstat (limited to 'lab1ucode.py')
| -rw-r--r-- | lab1ucode.py | 8 |
1 files changed, 4 insertions, 4 deletions
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" |
