From 634914843ea9f862bb524d1aad91dffd13c27f15 Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Tue, 26 Nov 2013 20:51:46 +0100 Subject: [PATCH] mjc2wsl process sub and mul --- src/mjc2wsl.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java index 521be05..c269f20 100644 --- a/src/mjc2wsl.java +++ b/src/mjc2wsl.java @@ -273,6 +273,18 @@ public class mjc2wsl{ prl(cmdToEStack("tempres")); break; } + case sub: { + prl(getTopTwo()); + prl("tempres := tempb - tempa;"); + prl(cmdToEStack("tempres")); + break; + } + case mul: { + prl(getTopTwo()); + prl("tempres := tempb * tempa;"); + prl(cmdToEStack("tempres")); + break; + } case div: { prl(getTopTwo()); prl("tempres := tempb / tempa;"); -- 2.25.1