From 14e2062e3bd241ae77571820a3beb5a3339dd06d Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Wed, 11 Dec 2013 00:22:24 +0100 Subject: [PATCH] mjc2wsl - return statment processing - let things return where they need to go --- src/mjc2wsl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java index 86743cf..69287f6 100644 --- a/src/mjc2wsl.java +++ b/src/mjc2wsl.java @@ -355,8 +355,11 @@ public class mjc2wsl{ } case return_: { - prl(createComment("return not fully procesed yet")); - message("return not fully procesed yet", M_WAR); + prl("IF EMPTY?(mjvm_mstack) THEN CALL Z ELSE"); + //else we let things return + prl(cmdFromMStack("tempa")); + prl("SKIP FI"); + prl("END b"+counter+" =="); break; } case enter: { -- 2.25.1