We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In opcodes.yaml it is clearly seen, that GETGLOBVAR does not have instruction-encoded argument, while GETGLOB does.
# A.11.5. Global variable primitives. GETGLOBVAR: GETGLOB: ["int"]
Same goes for the ton docs.
However in opcodes.ts there is such handling of GETGLOBVAR
CP0Auto.insertHex('f841', 11, (slice) => { let i = slice.loadUint(5); return { code: `GETGLOBVAR`, args: [i] }; });
And as decompiler output I get
1 GETGLOBVAR
Also, when executing this code in @ton/sandbox I can clearly see that GETGLOB is being executed, not GETGLOBVAR.
Besides, I still do not understand which encoding is correct, and we probably need to fix this in docs too.
The text was updated successfully, but these errors were encountered:
Moreover, both opcodes been decoded like GETGLOBVAR. Why?
GETGLOBVAR
global int first; global int second; (int) test() impure inline asm "ONE ONE ADD GETGLOBVAR"; ~impure_touch(test()); ~impure_touch(second);
results
1 PUSHINT 1 PUSHINT ADD 0 GETGLOBVAR s0 POP 1 GETGLOBVAR s0 POP
Which is totally incorrect
Sorry, something went wrong.
Shvandre
No branches or pull requests
In opcodes.yaml it is clearly seen, that GETGLOBVAR does not have instruction-encoded argument, while GETGLOB does.
Same goes for the ton docs.
However in opcodes.ts there is such handling of GETGLOBVAR
And as decompiler output I get
Also, when executing this code in @ton/sandbox I can clearly see that GETGLOB is being executed, not GETGLOBVAR.
Besides, I still do not understand which encoding is correct, and we probably need to fix this in docs too.
The text was updated successfully, but these errors were encountered: