summaryrefslogtreecommitdiff
path: root/projects/07/MemoryAccess/StaticTest
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2022-08-22 17:04:49 +0800
committerFrederick Yin <fkfd@fkfd.me>2022-08-22 17:04:49 +0800
commit21c58570d3897f1f480b6cf6c572c350e7a0dd95 (patch)
treeeed5ff515d322439ab843e009b00faed0e30e9c8 /projects/07/MemoryAccess/StaticTest
parent10c9f64f592198d78aad11ebc676629d92ca6576 (diff)
Output assembly files in project 07
Diffstat (limited to 'projects/07/MemoryAccess/StaticTest')
-rw-r--r--projects/07/MemoryAccess/StaticTest/StaticTest.asm70
1 files changed, 70 insertions, 0 deletions
diff --git a/projects/07/MemoryAccess/StaticTest/StaticTest.asm b/projects/07/MemoryAccess/StaticTest/StaticTest.asm
new file mode 100644
index 0000000..48aaacd
--- /dev/null
+++ b/projects/07/MemoryAccess/StaticTest/StaticTest.asm
@@ -0,0 +1,70 @@
+@111
+D=A
+@SP
+A=M
+M=D
+@SP
+M=M+1
+@333
+D=A
+@SP
+A=M
+M=D
+@SP
+M=M+1
+@888
+D=A
+@SP
+A=M
+M=D
+@SP
+M=M+1
+@SP
+M=M-1
+A=M
+D=M
+@StaticTest.8
+M=D
+@SP
+M=M-1
+A=M
+D=M
+@StaticTest.3
+M=D
+@SP
+M=M-1
+A=M
+D=M
+@StaticTest.1
+M=D
+@StaticTest.3
+D=M
+@SP
+A=M
+M=D
+@SP
+M=M+1
+@StaticTest.1
+D=M
+@SP
+A=M
+M=D
+@SP
+M=M+1
+@SP
+AM=M-1
+D=M
+A=A-1
+M=M-D
+@StaticTest.8
+D=M
+@SP
+A=M
+M=D
+@SP
+M=M+1
+@SP
+AM=M-1
+D=M
+A=A-1
+M=D+M