From c0df980873f89254fb67e2ee809ced9a5408909f Mon Sep 17 00:00:00 2001 From: Vipin Kumar Date: Tue, 29 Aug 2017 05:32:27 +0000 Subject: [PATCH] Small fix in method writeFunction() --- CodeWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodeWriter.java b/CodeWriter.java index 98101ba..f363066 100644 --- a/CodeWriter.java +++ b/CodeWriter.java @@ -673,7 +673,7 @@ public void writeFunction(String funcName, String nLocals) { out.newLine(); out.write("D = M"); out.newLine(); - out.write("@" + funcName + "$END_LOOP"); + out.write("@" + funcName.toUpperCase() + "$END_LOOP"); out.newLine(); out.write("D;JLE"); out.newLine();