HW08-JRollinson/CodeWriter.java
private String arithmeticTemplate2(String type)
    {
        return "@SP\n" + "AM=M-1\n" + "D=M\n" + "A=A-1\n" + "D=M-D\n" +
                "@FALSE" + arthJumpFlag + "\n" + "D;" + type + "\n" +
                "@SP\n" + "A=M-1\n" + "M=-1\n" + "@CONTINUE" + arthJumpFlag + "\n" +
                "0;JMP\n" + "(FALSE" + arthJumpFlag + ")\n" + "@SP\n" + "A=M-1\n" +
                "M=0\n" + "(CONTINUE" + arthJumpFlag + ")\n";
    }
// POST-CONDITION: returns a string template for the operations: JLE, JGT, JEQ.

POST-CONDITION: returns a string template for the operations: JLE, JGT, JEQ.
POST - CONDITION : returns a string template for the operations : JLE JGT JEQ .
private String arithmeticTemplate2(String type)
    {
        return "@SP\n" + "AM=M-1\n" + "D=M\n" + "A=A-1\n" + "D=M-D\n" +
                "@FALSE" + arthJumpFlag + "\n" + "D;" + type + "\n" +
                "@SP\n" + "A=M-1\n" + "M=-1\n" + "@CONTINUE" + arthJumpFlag + "\n" +
                "0;JMP\n" + "(FALSE" + arthJumpFlag + ")\n" + "@SP\n" + "A=M-1\n" +
                "M=0\n" + "(CONTINUE" + arthJumpFlag + ")\n";
    }
private String arithmeticTemplate2 ( String type ) { return "@SP\n" + "AM=M-1\n" + "D=M\n" + "A=A-1\n" + "D=M-D\n" + "@FALSE" + arthJumpFlag + "\n" + "D;" + type + "\n" + "@SP\n" + "A=M-1\n" + "M=-1\n" + "@CONTINUE" + arthJumpFlag + "\n" + "0;JMP\n" + "(FALSE" + arthJumpFlag + ")\n" + "@SP\n" + "A=M-1\n" + "M=0\n" + "(CONTINUE" + arthJumpFlag + ")\n" ; }
POST-CONDITION: returns a string template for the operations: JLE, JGT, JEQ.
POST - CONDITION : returns a string template for the operations : JLE JGT JEQ .