Question about readmem and je command
Posted: Mon Jul 04, 2022 2:43 am
HELLO
lblPlayerGrabber:
readmem(aobPlayerGrabber,7)
je lblPlayerGrabberSkip
mov dword ptr [pPlayerCharacter],edi
Above is a part of the script of some game already written by someone and it works fine.
Im trying to learn CE through scripts already written like this.
the cmp command usually comes before je so that i could know what the je would compare at that situation.
But the command "readmem" is just before the command "je" at the above script.
Then what does je compare?
And one more thing, I wanna know why actually readmem is needed.
Could you please give me some or just one example to show the role of readmem command?
I know readmem copies bytes of the variable but I couldn't get why it is needed.
Sorry about such a elementary question but please consider that I have no source to get information about this language.
lblPlayerGrabber:
readmem(aobPlayerGrabber,7)
je lblPlayerGrabberSkip
mov dword ptr [pPlayerCharacter],edi
Above is a part of the script of some game already written by someone and it works fine.
Im trying to learn CE through scripts already written like this.
the cmp command usually comes before je so that i could know what the je would compare at that situation.
But the command "readmem" is just before the command "je" at the above script.
Then what does je compare?
And one more thing, I wanna know why actually readmem is needed.
Could you please give me some or just one example to show the role of readmem command?
I know readmem copies bytes of the variable but I couldn't get why it is needed.
Sorry about such a elementary question but please consider that I have no source to get information about this language.