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 


[C++] help with asm
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Tue Apr 01, 2008 9:03 am    Post subject: Reply with quote

i don't think at the time we needed one...
_________________
Back to top
View user's profile Send private message
decheatengine
Cheater
Reputation: 0

Joined: 10 Jun 2007
Posts: 25

PostPosted: Tue Apr 01, 2008 12:41 pm    Post subject: Reply with quote

I have a question regarding ASM too. I tried the below inline asm codes but visual c failed to compile the code.

DWORD add1 = 0x00458769
_asm {
jne add1 ;this line fail
jne [add1] ;this line failed too
ret }

If i use jne 0x00458769, the generated ASM code using IDA is jnz $+6, which is also wrong.

I came out with a idea, which is jne LABEL, at label use JMP add1. Is this the right way?
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Tue Apr 01, 2008 1:20 pm    Post subject: Reply with quote

Make sure your code executes this asm code when its need to. (make a code cave)
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 programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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