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 


Need some Inline Assembler Help

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

Joined: 08 Jan 2006
Posts: 109

PostPosted: Tue Jan 15, 2008 10:10 pm    Post subject: Need some Inline Assembler Help Reply with quote

How can you nop an address with the C++ inline assembler?
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Wed Jan 16, 2008 12:50 am    Post subject: Reply with quote

Code:
mov dword ptr [ADDRESS], 90909090
mov word  ptr [ADDRESS], 9090
mov byte  ptr [ADDRESS], 90


Assuming this is an injected dll.

_________________
Back to top
View user's profile Send private message
vegito616
Expert Cheater
Reputation: 0

Joined: 08 Jan 2006
Posts: 109

PostPosted: Wed Jan 16, 2008 6:57 am    Post subject: Reply with quote

When I try that code, it gives me a "improper operand type" type error.

Code:
_asm{
mov word  ptr [0x005D9014], 9090
}
[/code]
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Wed Jan 16, 2008 7:23 am    Post subject: Reply with quote

Code:
_asm
   {
      mov byte ptr ds:[0x00400028], 0x90
   }
Back to top
View user's profile Send private message MSN Messenger
vegito616
Expert Cheater
Reputation: 0

Joined: 08 Jan 2006
Posts: 109

PostPosted: Wed Jan 16, 2008 7:53 am    Post subject: Reply with quote

What if I needed to do:
Code:
db 90 90 90 90 90 90

How would I accomplish that since it requires more than 4 nops.
Back to top
View user's profile Send private message
assaf84
Expert Cheater
Reputation: 0

Joined: 03 Oct 2006
Posts: 238

PostPosted: Wed Jan 16, 2008 8:48 am    Post subject: Reply with quote

Move a DWORD and then a BYTE.. Or write 1 byte 5 times in a loop..
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
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