gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8be41b)
raw | patch | inline | side by side (parent: e8be41b)
author | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 11 Jun 2014 15:02:25 +0000 (17:02 +0200) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 11 Jun 2014 15:02:25 +0000 (17:02 +0200) |
src/mjc2wsl.java | patch | blob | history |
diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java
index 5472d5564234d3b689bcc9ad26f908e0361c2ef7..18551d13e89223770ff6ec177ef117d30645b74f 100644 (file)
--- a/src/mjc2wsl.java
+++ b/src/mjc2wsl.java
}
case astore:
case bastore: {
+ prl(createStartVar("tempa", "tempb", "tempres"));
prl(createFromEStack("tempres"));
prl(createTopTwoEStack());
- // we need to use a temparray as a pointer, WSL
- // otherwise tries to access it as a list of lists and fails
- prl("VAR < tempArray := " + createArray("tempb") + " > :");
- prl("tempArray[tempa+1]:=tempres ENDVAR;");
+ prl("mjvm_arrays[tempb][tempa+1]:=tempres;");
+ prl(createEndVar());
break;
}
case arraylength: {