diff options
Diffstat (limited to 'lab1ucode.py')
| -rw-r--r-- | lab1ucode.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lab1ucode.py b/lab1ucode.py index 6c74130..e9b0fc1 100644 --- a/lab1ucode.py +++ b/lab1ucode.py @@ -89,6 +89,11 @@ def compile(lines): tb = TB[other] alu = "0101" + if "&" in fr: + other = fr.split("&")[0] + tb = TB[other] + alu = "0110" + if inst == "pc++": p = "1" |
