aboutsummaryrefslogtreecommitdiff
path: root/projects/08/FunctionCalls/SimpleFunction
diff options
context:
space:
mode:
Diffstat (limited to 'projects/08/FunctionCalls/SimpleFunction')
-rw-r--r--projects/08/FunctionCalls/SimpleFunction/SimpleFunction.asm11
1 files changed, 6 insertions, 5 deletions
diff --git a/projects/08/FunctionCalls/SimpleFunction/SimpleFunction.asm b/projects/08/FunctionCalls/SimpleFunction/SimpleFunction.asm
index 7fe71a5..de3a0da 100644
--- a/projects/08/FunctionCalls/SimpleFunction/SimpleFunction.asm
+++ b/projects/08/FunctionCalls/SimpleFunction/SimpleFunction.asm
@@ -98,6 +98,11 @@ M=M+1
D=M
@R13
M=D
+@5
+A=D-A
+D=M
+@R14
+M=D
@SP
AM=M-1
D=M
@@ -128,10 +133,6 @@ AM=M-1
D=M
@LCL
M=D
-@R13
-A=M-1
+@R14
A=M
0;JMP
-(END)
-@END
-0;JMP \ No newline at end of file