You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disassembler can't properly handle classes with variadic arguments #149
When the IDE comes across an OPCODE that contains a function like REST / CALLBACK (XXXX=-1,[...]), the opcode class goes crazy. The IDE copies and pastes the last value entered in the opcode, until the 35 spaces it allows are completed.
That is to say that from this:
There are times when it does not copy the last value, but 2 values at the same time.
You could include a parameter like % r to represent a REST / CALLBACK and prevent that error
; example
CallFunction, 0AA5,0,0, ("address% i""numParams% i""pop% r")
I could also notice that the strings were being poorly compiled.
Here is a fragment of code with which I was doing tests and the files of the SA mode that I have modified. sa.zip
Activity
x87 commentedon Jun 13, 2021
@MatiDragon-YT this issue should be fixed in https://github.com/sannybuilder/dev/releases/tag/v3.8.0-alpha.3
x87 commentedon Jun 23, 2021
@MatiDragon-YT Have you tried the new version? Do you still experience this issue?
MatiDragon-YT commentedon Jun 23, 2021
@x87 you are the coolest magician I have ever seen :)
I downloaded it yesterday and see the problem no longer exists.
MatiDragon-YT commentedon Jun 28, 2021
@x87 I ran into some new problems wanting to make some classes decompile like this:
and i got these results with these settings...
I could also notice that the strings were being poorly compiled.
Here is a fragment of code with which I was doing tests and the files of the SA mode that I have modified.
sa.zip
{$CLEO} const numParams = 0@ stringVar = 3@v charSame = 0x3D { = } end nop repeat wait 0 until Input.IsKeyPressed(VK.O) string_format stringVar = "%d * %d" 4 10 // 4 * 10 if// (stringVar == "\d + \d") numParams = Text.ScanString(stringVar, "%d + %d", 1@, 2@) then Text.PrintHelpString("Performing addition...") 0A8E: numParams = 1@ + 2@ wait 2000 Text.PrintHelpFormatted("%d + %d %c %d", 1@, 2@, charSame, numParams) end if numParams = Text.ScanString(stringVar, "%d * %d", 1@, 2@) then Text.PrintHelpString("Performing multiplication...") 0A90: numParams = 1@ * 2@ wait 2000 Text.PrintHelpFormatted("%d * %d %c %d", 1@, 2@, charSame, numParams) end terminate_this_custom_scriptx87 commentedon Jul 1, 2021
@MatiDragon-YT
can you clarify the issue? What is the compiler error?
MatiDragon-YT commentedon Jul 2, 2021
the values
STRING.Are delete the White Spaces
x87 commentedon Jul 2, 2021
Sorry, I didn't get you. You mean the compiler stripped whitespaces from the string literal?
What
STRINGis referred to?MatiDragon-YT commentedon Jul 2, 2021
YES, YEEESSS..
For example
Text.ScanString&Text.PrintHelpFormattedSorry... my English is getting a bit bad from studying other languages :(
x87 commentedon Jul 2, 2021
I think what you describe is this issue: #66
x87 commentedon Jul 24, 2021
this issue should be gone with v3.8.0-beta.0, please try
MatiDragon-YT commentedon Jul 24, 2021
Sure enough, the error disappeared.