From 9a00b56dbb4af4b59c426387e4a2156c5757b0c4 Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Wed, 8 Jan 2014 17:09:16 +0100 Subject: [PATCH] mjc2wsl - minor - use 'loc' to generate local names always --- src/mjc2wsl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java index fd360e2..65b6348 100644 --- a/src/mjc2wsl.java +++ b/src/mjc2wsl.java @@ -114,7 +114,7 @@ public class mjc2wsl{ 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 > :"); @@ -419,7 +419,7 @@ public class mjc2wsl{ get(); for (int i = parameters-1; i >= 0; i--) - prl(cmdFromEStack("mjvm_loc" + i)); + prl(cmdFromEStack(loc(i))); break; } case exit: { -- 2.25.1