diff --git a/CodeWriter.java b/CodeWriter.java index 810e528..b84b350 100644 --- a/CodeWriter.java +++ b/CodeWriter.java @@ -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")) {