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/ProgramFlow | |
parent | f84dcda74e13120c5433591feeeed7e7d4c5f322 (diff) |
finished project 8.
Diffstat (limited to 'projects/08/ProgramFlow')
-rw-r--r-- | projects/08/ProgramFlow/BasicLoop/BasicLoop.asm | 11 | ||||
-rw-r--r-- | projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm | 3 |
2 files changed, 2 insertions, 12 deletions
diff --git a/projects/08/ProgramFlow/BasicLoop/BasicLoop.asm b/projects/08/ProgramFlow/BasicLoop/BasicLoop.asm index 62aa0cf..b2e42a7 100644 --- a/projects/08/ProgramFlow/BasicLoop/BasicLoop.asm +++ b/projects/08/ProgramFlow/BasicLoop/BasicLoop.asm @@ -1,7 +1,3 @@ -@256 -D=A -@SP -M=D @0 D=A @SP @@ -21,7 +17,7 @@ D=M @R13 A=M M=D -(LOOP_START) +($LOOP_START) @ARG D=M @0 @@ -122,7 +118,7 @@ M=M+1 @SP AM=M-1 D=M -@LOOP_START +@$LOOP_START D;JNE @LCL D=M @@ -135,6 +131,3 @@ A=M M=D @SP M=M+1 -(END) -@END -0;JMP
\ No newline at end of file diff --git a/projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm b/projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm index 3f06978..3436cef 100644 --- a/projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm +++ b/projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.asm @@ -232,6 +232,3 @@ M=D @$MAIN_LOOP_START 0;JMP ($END_PROGRAM) -(END) -@END -0;JMP
\ No newline at end of file |