gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
fix for the optional generation of opcodes in comments
authorDoni Pracner <quinnuendo@gmail.com>
Tue, 27 May 2014 22:32:30 +0000 (00:32 +0200)
committerDoni Pracner <quinnuendo@gmail.com>
Tue, 27 May 2014 22:32:30 +0000 (00:32 +0200)
src/mjc2wsl.java

index 97e61ac50c8c94143cb4fa135e324b6d0382637f..a140ced71408bfadd294b01b0886ddd1cca168a7 100644 (file)
@@ -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)
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner