Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Push RDX crashing script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Thu Mar 16, 2017 3:21 am    Post subject: Push RDX crashing script Reply with quote

Hey guys,

This was my code before:

Code:

  push rax
  push rcx
  xor rcx,rcx
  mov rax,myarray
myloop:
  cmp [rax+rcx*8],rbx
  je endloop
...
pop rax
pop rcx


I wanted to use another register so all I did was add in push rdx, xor rdx,rdx and popped at the end so now it looks like this:

Code:

  push rax
  push rcx
  xor rcx,rcx
  push rdx
  xor rdx,rdx
  mov rax,myarray
myloop:
  cmp [rax+rcx*8],rbx
  je endloop
...
pop rax
pop rcx
pop rdx


I didn't even use it yet and this is crashing the game just adding those 3 lines, any ideas why? RDX I want to use as a pointer, but I haven't even wrote that part yet and it's crashing.

Thanks
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Thu Mar 16, 2017 3:42 am    Post subject: Reply with quote

LIFO Or FILO - Last in first out or First in last out

push rax
push rcx
xor rcx,rcx
push rdx

pop rdx
pop rcx
pop rax

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
nero1232
Advanced Cheater
Reputation: 0

Joined: 08 Mar 2017
Posts: 65

PostPosted: Thu Mar 16, 2017 4:55 am    Post subject: Reply with quote

STN wrote:
LIFO Or FILO - Last in first out or First in last out

push rax
push rcx
xor rcx,rcx
push rdx

pop rdx
pop rcx
pop rax


Thanks got it
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites