[08] Init Use LC=300, ARG=400 as standard values for now

master
Nemo 3 years ago
parent 91b8ef006e
commit 6bdbec501a
  1. 2
      projects/08/ProgramFlow/FibonacciSeries/FibonacciSeries.out
  2. 8
      vm/CodeWriter.php

@ -0,0 +1,2 @@
|RAM[3000]|RAM[3001]|RAM[3002]|RAM[3003]|RAM[3004]|RAM[3005]|
| 0 | 1 | 1 | 2 | 3 | 5 |

@ -101,14 +101,14 @@ class CodeWriter {
"D=A",
"@SP",
"M=D // initialized SP to 256",
"@16000",
"@300",
"D=A",
"@LCL",
"M=D // initialized @LCL to 16000",
"@16500",
"M=D // initialized @LCL to 300",
"@400",
"D=A",
"@ARG",
"M=D // initialized @ARG to 16500",
"M=D // initialized @ARG to 400",
]);
}

Loading…
Cancel
Save