gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a52603)
raw | patch | inline | side by side (parent: 0a52603)
author | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 8 Jan 2014 16:09:16 +0000 (17:09 +0100) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 8 Jan 2014 16:09:16 +0000 (17:09 +0100) |
src/mjc2wsl.java | patch | blob | history |
diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java
index fd360e2ba7717552a53358f4b3115889fc84b1f9..65b6348cf19b08e6e239f10510daf14464b3a69a 100644 (file)
--- a/src/mjc2wsl.java
+++ b/src/mjc2wsl.java
ret.append("VAR < tempa := 0, tempb := 0, tempres :=0,\n\t");
for (int i = 0; i <= 3; i++)
- ret.append("mjvm_loc" + i + " := 0, ");
+ ret.append(loc(i) + " := 0, ");
ret.append("\n mjvm_estack := < >, mjvm_mstack := < >, ");
ret.append("\n mjvm_fp := 0, mjvm_sp := 0,");
ret.append("\n t_e_m_p := 0 > :");
get();
for (int i = parameters-1; i >= 0; i--)
- prl(cmdFromEStack("mjvm_loc" + i));
+ prl(cmdFromEStack(loc(i)));
break;
}
case exit: {