Menu

dont have number constants define

chriscp
2020-08-19
2020-08-22
  • chriscp

    chriscp - 2020-08-19

    hello,

    Sorry, my English is not good, so I used a translation

    I didn't find the number defined in the decompilation

    This is the disassembly of the function and decompilation
    [image: image.png]
    [image: image.png]
    i changed the opcodemap.java
    I will upload the source code and lua file
    Hope to fix this problem
    thanks !

     
  • tehtmi

    tehtmi - 2020-08-19

    I think you want the for loop limits.

    Latest change should fix this. (You can compile yourself.) Registers.java:

    @@ -53,7 +53,7 @@
       }
    
       public boolean isAssignable(int register, int line) {
    
    -    return isLocal(register, line) && !decls[register][line].forLoop;
    +    return isLocal(register, line) && (!decls[register][line].forLoop || isStrippedDefault);
       }
    
       public boolean isLocal(int register, int line) {
    

    (The decompiler in stripped mode probably has other problems as well.)

     
    👍
    1
    • chriscp

      chriscp - 2020-08-20
       

      Last edit: chriscp 2020-08-20
    • chriscp

      chriscp - 2020-08-20

      I think I have a new problem
      Global variables cannot be correctly valued
      L6 is supposed to be a global variable
      But it's covered by the local variable with the same name
      I think you can give a new name to a local variable in a function
      like (functiname)L12_ L6
      Or let global variables or local variables in file main have new names
      I up the new img in the topic

       

      Last edit: chriscp 2020-08-20
      • tehtmi

        tehtmi - 2020-08-20

        I just made another change to fix this.

         
        • chriscp

          chriscp - 2020-08-20

          Constants after the keyword "or" cannot be exported correctly

           

          Last edit: chriscp 2020-08-20
        • chriscp

          chriscp - 2020-08-21

          After I manually modified the error I mentioned above, the script has been able to run normally

           
          • tehtmi

            tehtmi - 2020-08-21

            New change addressed this issue.

            I know there are still problems, but if it is good enough for you now, that is good.

             
            • chriscp

              chriscp - 2020-08-22

              I think it's good enough
              Thank you for your time to solve my problem

               
  • chriscp

    chriscp - 2020-08-19

    thanks your update! I didn't expect to get a reply so soon

     

    Last edit: chriscp 2020-08-19

Log in to post a comment.

MongoDB Logo MongoDB