diff options
author | Yuchen Pei <me@ypei.me> | 2018-01-06 17:24:28 +0100 |
---|---|---|
committer | Yuchen Pei <me@ypei.me> | 2018-01-06 17:24:28 +0100 |
commit | 29a1931f2ee4e72ddd240096bf6fe9a04668f131 (patch) | |
tree | 03bbc0366ed2b00de6a276f908c751971d0d5628 /projects/08/FunctionCalls/SimpleFunction | |
parent | f84dcda74e13120c5433591feeeed7e7d4c5f322 (diff) |
finished project 8.
Diffstat (limited to 'projects/08/FunctionCalls/SimpleFunction')
-rw-r--r-- | projects/08/FunctionCalls/SimpleFunction/SimpleFunction.asm | 11 |
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 |