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 


bug?

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

Joined: 09 Aug 2011
Posts: 35
Location: HongKong

PostPosted: Wed Nov 14, 2012 11:00 am    Post subject: bug? Reply with quote

Shocked Shocked Shocked Shocked


cheatengine-x86_64.jpg
 Description:
cheatengine-x86_64
 Filesize:  193.6 KB
 Viewed:  5907 Time(s)

cheatengine-x86_64.jpg



cheatengine-i386.jpg
 Description:
cheatengine-i386
 Filesize:  186.4 KB
 Viewed:  5907 Time(s)

cheatengine-i386.jpg


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25855
Location: The netherlands

PostPosted: Wed Nov 14, 2012 12:40 pm    Post subject: Reply with quote

No, it's correct

A 64-bit process needs an address filled with the target address to be able to jump to it while a 32-bit process does not

The address of "sleep" in a 32-bit process is 75391100
The address of "sleep" in a 64-bit process is 7fefd611140

A direct call only has a max range of 32-bit , but to get to 7fefd611140 from 2eb0010 you need to go a distance bigger than a 32-bit value can specify, so an indirect call is needed

your "call sleep" gets rewritten to:
Code:

call [addresswithsleep]
jmp afteraddresswithsleep

addresswithsleep:
dq 7fefd611140

afteraddresswithsleep:



Also, if your target process is 64-bit you also must use the calling convention of 64-bit
Code:

push #1000
call sleep

is not valid for a 64-bit target

use something like this
Code:

sub rsp,28
mov rcx,#1000
call sleep
add rsp,28


Also, in 64-bit RAX, RCX, RDX, R8, R9, R10, R11 can be modified by a function call like sleep, so make sure those are not important, or store them. (make sure the stack stays aligned though)

Of course since there aren't that many 64-bit games out right now I doubt you have to worry about this much

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping


Last edited by Dark Byte on Wed Nov 14, 2012 12:55 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
yui0900826
Cheater
Reputation: 0

Joined: 09 Aug 2011
Posts: 35
Location: HongKong

PostPosted: Wed Nov 14, 2012 12:55 pm    Post subject: Reply with quote

thank you! Idea Idea
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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