diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2022-01-27 00:21:02 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2022-01-27 00:21:02 +0100 |
| commit | 2c21d9d4723f29acdb16d963a934707cf7574de9 (patch) | |
| tree | 4734ebd1772c68467d075e94009b121fa129b2fa /lab1ucode.py | |
| parent | cc8826e648805b50fe888706b2ded8be463c5d18 (diff) | |
| download | tsea83-2c21d9d4723f29acdb16d963a934707cf7574de9.tar.gz | |
lab1-3
Diffstat (limited to 'lab1ucode.py')
| -rw-r--r-- | lab1ucode.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lab1ucode.py b/lab1ucode.py index 5c4e0b8..814ff4a 100644 --- a/lab1ucode.py +++ b/lab1ucode.py @@ -116,6 +116,10 @@ def compile(lines): cond, to = inst.split("? ") if cond == "l=1": seq = "1100" + elif cond == "z=1": + seq = "1000" + elif cond == "n=1": + seq = "1001" else: assert False myadr = f"<{to}>" |
