From: Doni Pracner Date: Tue, 26 Nov 2013 19:51:46 +0000 (+0100) Subject: mjc2wsl process sub and mul X-Git-Tag: v0.1.2~5 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=634914843ea9f862bb524d1aad91dffd13c27f15;p=mjc2wsl.git mjc2wsl process sub and mul --- 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;");