gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl process sub and mul
authorDoni Pracner <quinnuendo@gmail.com>
Tue, 26 Nov 2013 19:51:46 +0000 (20:51 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Tue, 26 Nov 2013 19:51:46 +0000 (20:51 +0100)
src/mjc2wsl.java

index 521be052fffd8f23a56a4537793fc4a85227245d..c269f20ef53852419341bd77ad9fd374c888d976 100644 (file)
@@ -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;");
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner