From: Doni Pracner Date: Tue, 27 May 2014 22:32:30 +0000 (+0200) Subject: fix for the optional generation of opcodes in comments X-Git-Tag: v0.1.6~1 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=ee2c9a778ace87b38d0bb4ff2279a37e63e38ba2;p=mjc2wsl.git fix for the optional generation of opcodes in comments --- diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java index 97e61ac..a140ced 100644 --- a/src/mjc2wsl.java +++ b/src/mjc2wsl.java @@ -392,9 +392,9 @@ public class mjc2wsl{ prl("SKIP;\n ACTIONS a" + (14 + mainAdr) + " :"); int op = get(); while (op >= 0) { + prl(" a" + counter + " == "); if (originalInComments) prl(createComment(describeOpCode(op), C_OC)); - prl(" a" + counter + " == "); if (genPrintForEachAddress) { prl("PRINT(\"a" + counter + "\");"); if (genPauseAfterEachAddress)