| View previous topic :: View next topic |
| Author |
Message |
hawlong Newbie cheater
Reputation: 0
Joined: 24 Jan 2022 Posts: 10
|
Posted: Fri Feb 04, 2022 6:50 am Post subject: what does this code |
|
|
hello ,
Please help me, what does this code do?
| Code: | registersymbol(black)
alloc(black,12)
newmem:
mov esi,ecx
cmp [black],1
jne code
|
And what is the name of this programming language?
|
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Fri Feb 04, 2022 7:01 am Post subject: |
|
|
It's auto assembler.
| Code: |
registersymbol(black) // register a label for reference within the table
alloc(black,12) // allocate 12 bytes of memory
newmem:
mov esi,ecx // move the value held in ecx into esi
cmp [black],1 // move the value 1 to the address black
jne code // if the value is not equal to 1 then jump to the code section (original instructions)
|
|
|
| Back to top |
|
 |
hawlong Newbie cheater
Reputation: 0
Joined: 24 Jan 2022 Posts: 10
|
Posted: Fri Feb 04, 2022 7:47 am Post subject: |
|
|
thanks for reply ,
[black] Is this variable?
where is the value of this variable?
|
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Fri Feb 04, 2022 8:20 am Post subject: |
|
|
black is the user defined reference. In essence, yes it's a variable.
You can view the address/value of black (if the script activates) by navigating to the Lua engine window (ctrl, alt, shift + L) then typing the following code:
| Code: |
print('The address of black is : ' .. getAddressSafe('black') .. '\n' .. The value of black is : ' .. readInteger('black'))
|
|
|
| Back to top |
|
 |
hawlong Newbie cheater
Reputation: 0
Joined: 24 Jan 2022 Posts: 10
|
Posted: Fri Feb 04, 2022 8:44 am Post subject: |
|
|
Sorry, I did not understand
Why is this variable[black] being compared when it has no value?
Is it possible to convert this code to c plus?
| Code: | registersymbol(black)
alloc(black,12) |
what does this function do?
|
|
| Back to top |
|
 |
LeFiXER Grandmaster Cheater Supreme
Reputation: 20
Joined: 02 Sep 2011 Posts: 1069 Location: 0x90
|
Posted: Fri Feb 04, 2022 11:35 am Post subject: |
|
|
| hawlong wrote: | Sorry, I did not understand
Why is this variable[black] being compared when it has no value?
Is it possible to convert this code to c plus?
| Code: | registersymbol(black)
alloc(black,12) |
what does this function do?
|
I have no idea how you obtained the code so I can't tell you why. I'm not proficient in C++ so I can't advise on that matter. In regard to your next question.
Reassembles the given address, writing at it's declared location. It acts like a smart readMem. It reads the address's instruction, re-evaluates any addresses, reassembles the address's instruction at its declared location. This is great for code changes in game updates, as well as polymorphic code, or any code that has polymorphic like behaviour.
Note: It doesn't accept labels, just registered symbols and addresses.
For more information you can view the wiki.
|
|
| Back to top |
|
 |
hawlong Newbie cheater
Reputation: 0
Joined: 24 Jan 2022 Posts: 10
|
Posted: Fri Feb 04, 2022 4:57 pm Post subject: |
|
|
| Thanks so much , <3
|
|
| Back to top |
|
 |
|