summaryrefslogtreecommitdiffstats
path: root/lab1/lab1-upg2.in
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2022-02-04 08:58:45 +0100
committerGustav Sörnäs <gustav@sornas.net>2022-02-04 08:58:45 +0100
commit63a6a21f1f728a131b599fca7bc20e2001b2ad33 (patch)
tree85e7ed116c2a567d1017a30381322e3cabd89303 /lab1/lab1-upg2.in
parentf3eae905ca1e378948ee228e93f3c697cb879605 (diff)
downloadtsea83-63a6a21f1f728a131b599fca7bc20e2001b2ad33.tar.gz
move to dir
Diffstat (limited to 'lab1/lab1-upg2.in')
-rw-r--r--lab1/lab1-upg2.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/lab1/lab1-upg2.in b/lab1/lab1-upg2.in
new file mode 100644
index 0000000..10d9586
--- /dev/null
+++ b/lab1/lab1-upg2.in
@@ -0,0 +1,30 @@
+load 0 0 fe
+and 0 1
+000f
+store 0 0 ff
+
+load 0 0 fe
+lsr 0 1
+0004
+and 0 1
+000f
+add 0 0 ff
+store 0 0 ff
+
+load 0 0 fe
+lsr 0 1
+0008
+and 0 1
+000f
+add 0 0 ff
+store 0 0 ff
+
+load 0 0 fe
+lsr 0 1
+000c
+and 0 1
+000f
+add 0 0 ff
+store 0 0 ff
+
+halt