summaryrefslogtreecommitdiffstats
path: root/lab1asm.py
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2022-01-27 01:45:11 +0100
committerGustav Sörnäs <gustav@sornas.net>2022-01-27 03:01:42 +0100
commitfa8969c6b0ef432aa2c87dc2d034523cec88e79d (patch)
tree5debc77519b8524859f1306ff08570a4f6891f3d /lab1asm.py
parentf913518b66fdd0b48420161d4f2114699b466d18 (diff)
downloadtsea83-fa8969c6b0ef432aa2c87dc2d034523cec88e79d.tar.gz
update makefile
Diffstat (limited to 'lab1asm.py')
-rw-r--r--lab1asm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lab1asm.py b/lab1asm.py
index 46dd3f6..ce1df5e 100644
--- a/lab1asm.py
+++ b/lab1asm.py
@@ -53,7 +53,7 @@ def compile(lines):
compiled.append("{:02x}: {:04x}".format(addr, int(oper, 16)))
case _:
compiled.append(" !!!", line)
- continue
+ assert False
addr += 1
linked = []
@@ -72,7 +72,7 @@ def write(prog, labels):
print("PM:")
print(prog)
- print("\n".join(["{}: {:02x}".format(*label) for label in labels.items()]), file=sys.stderr)
+ #print("\n".join(["{}: {:02x}".format(*label) for label in labels.items()]), file=sys.stderr)
if __name__ == "__main__":