From 29a1931f2ee4e72ddd240096bf6fe9a04668f131 Mon Sep 17 00:00:00 2001
From: Yuchen Pei <me@ypei.me>
Date: Sat, 6 Jan 2018 17:24:28 +0100
Subject: finished project 8.

---
 projects/08/FunctionCalls/SimpleFunction/SimpleFunction.asm | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

(limited to 'projects/08/FunctionCalls/SimpleFunction')

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
-- 
cgit v1.2.3