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 


Inlinse ASM, db 90 (NOP)

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

Joined: 02 Nov 2008
Posts: 494
Location: Canada eh?

PostPosted: Sun Nov 01, 2009 1:40 pm    Post subject: Inlinse ASM, db 90 (NOP) Reply with quote

I am trying to convert a script to inline ASM from AA, but I hit a road block.
(Ignore the fact that I renamed everything)

Addy:
jmp MyAsmFunc
This line -> db 90

error C2400: inline assembler syntax error in 'opcode'; found 'constant'

I have figured out that db is something Dark Byte made up, whats an alternative?

_________________
Back to top
View user's profile Send private message Send e-mail
NoMercy
Master Cheater
Reputation: 1

Joined: 09 Feb 2009
Posts: 289

PostPosted: Sun Nov 01, 2009 2:15 pm    Post subject: Reply with quote

Code:
unsigned char bBytes[5] = {0x00}; // bytes u want there
   WriteProcessMemory((HANDLE)-1, (LPVOID)adress, bBytes, x, NULL);// x for how many bytes to change 0x10 = 1 byte


thats a way

i believe

Code:
 *(DWORD*)address = 0x41200000;
its the same as
db 00 00 20 41
Back to top
View user's profile Send private message
tombana
Master Cheater
Reputation: 2

Joined: 14 Jun 2007
Posts: 456
Location: The Netherlands

PostPosted: Sun Nov 01, 2009 3:03 pm    Post subject: Re: Inlinse ASM, db 90 (NOP) Reply with quote

AlbanainRetard wrote:
I have figured out that db is something Dark Byte made up, whats an alternative?

It's not something Dark Byte made up. db also works in other asm compilers like masm.
In c/c++ you can use __emit instead of db (don't know if it's microsoft specific or if it goes for all c/c++)


Last edited by tombana on Sun Nov 01, 2009 3:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Sun Nov 01, 2009 3:31 pm    Post subject: Reply with quote

Hahahahahahahahahaha epic fail.

and dw = dark byte wins
and dd = dark byte is dangerous
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Nov 01, 2009 5:22 pm    Post subject: Reply with quote

&Vage please stop posting in General Programming. Your posts are never useful and rarely relate to the actual question being asked.

@OP

If you're using C/C++ and are within the address space of the process (i.e you injected a DLL into the process) you could do something like:

Code:

dword *addr = 0xdeadbeef; // replace 0xdeadbeef with real address
*addr = 0x90;


If you aren't you can use WriteProcessMemory().

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Sun Nov 01, 2009 6:53 pm    Post subject: Reply with quote

oib111 wrote:
&Vage please stop posting in General Programming. Your posts are never useful and rarely relate to the actual question being asked.

@OP

If you're using C/C++ and are within the address space of the process (i.e you injected a DLL into the process) you could do something like:

Code:

dword *addr = 0xdeadbeef; // replace 0xdeadbeef with real address
*addr = 0x90;


If you aren't you can use WriteProcessMemory().
You posted something that doesn't even help the thread.

OP:

Code:
   __asm {
      jmp example;
      __emit 0x90
example:
   }
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Nov 01, 2009 8:01 pm    Post subject: Reply with quote

You're right, Because when I tell the OP how he can achieve what he wants that's obviously not helping him.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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