Skip to content

Commit

Permalink
Bug fix; Push static command had A instead of M
Browse files Browse the repository at this point in the history
  • Loading branch information
VipinindKumar committed Aug 22, 2017
1 parent 1f3795c commit f3cb5c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CodeWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ else if (arg1.equals("static")) {
out.write("@" + file + "." + index);
out.newLine();

// D = A
out.write("D = A");
// D = M
out.write("D = M");
out.newLine();
}
else if (arg1.equals("constant")) {
Expand Down

0 comments on commit f3cb5c6

Please sign in to comment.