summaryrefslogtreecommitdiffstats
path: root/lab1upg2.in
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2022-01-26 21:36:44 +0100
committerGustav Sörnäs <gustav@sornas.net>2022-01-26 21:36:44 +0100
commit2ea7eec53978ff743e73b83c4adab942914b0438 (patch)
tree11eee27d811fe5df177e30ba696014aa4f4e0a0d /lab1upg2.in
downloadtsea83-2ea7eec53978ff743e73b83c4adab942914b0438.tar.gz
initial commit
Diffstat (limited to 'lab1upg2.in')
-rw-r--r--lab1upg2.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/lab1upg2.in b/lab1upg2.in
new file mode 100644
index 0000000..10d9586
--- /dev/null
+++ b/lab1upg2.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