Skip to content

Commit

Permalink
Few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VipinindKumar committed Aug 27, 2017
1 parent 6ab162b commit af1eb90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CodeWriter.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**output assembly code for VMTranslator.java
*
* take the file name to ouput to and get ready to write to it,
* take the file name to output to and get ready to write to it,
* use writeArithmetic() and writePushPop() to translate,
* arithmetic and push/pop commands from the VM file.
**/
Expand Down Expand Up @@ -80,7 +80,7 @@ public void writeArithmetic (String arth) {
}


// different arth specific function coommands
// different arth specific function commands
if (arth.equals("add")) {
out.write("M = D + M");
out.newLine();
Expand Down Expand Up @@ -165,7 +165,7 @@ else if (arth.equals("lt")) {
out.write("M = M + 1");
out.newLine();

// incremennt i for the different conditional statements
// Increment i for the different conditional statements
i++;

}
Expand Down

0 comments on commit af1eb90

Please sign in to comment.