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 


MVC++ 2008 - Inline asm?

 
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: Sat Nov 28, 2009 8:13 pm    Post subject: MVC++ 2008 - Inline asm? Reply with quote

I know in GCC you can use inline asm like __asm__("mov eax,ebx");
So can I do the same - __asm in MVC++2008 doesn't allow (""). I am trying to take something like:
Code:

void Mov(string a, string b)
{
__asm("mov "+a,+","+b);
}

_________________
Back to top
View user's profile Send private message Send e-mail
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sat Nov 28, 2009 9:34 pm    Post subject: Reply with quote

Code:
void mov(int a, int b)
{
    __asm mov a, b
}

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

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

PostPosted: Sun Nov 29, 2009 1:25 am    Post subject: Reply with quote

Not going to comment on structure of that asm.

Plus it needs to be a string so I can go like:

Mov("eax","100");

which gives me:

__asm mov eax, 100

_________________
Back to top
View user's profile Send private message Send e-mail
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Nov 29, 2009 1:53 am    Post subject: Reply with quote

You'd have to create your own parser if you want to do that... not sure if theres any engines out there to do it for you.
_________________
Back to top
View user's profile Send private message
AlbanainRetard
Master Cheater
Reputation: 0

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

PostPosted: Sun Nov 29, 2009 2:52 am    Post subject: Reply with quote

I had the relapse that I could compile a dll with gcc that might have some code like:
Code:
__asm__("mov "a+","+b);

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

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Sun Nov 29, 2009 9:18 am    Post subject: Reply with quote

Code:
void Function(int a, int b)
{
   __asm {
    mov a, b
   }
}
Back to top
View user's profile Send private message MSN Messenger
AlbanainRetard
Master Cheater
Reputation: 0

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

PostPosted: Sun Nov 29, 2009 11:45 am    Post subject: Reply with quote

iPromise wrote:
Code:
void Function(int a, int b)
{
   __asm {
    mov a, b
   }
}


Is the same thing:

lurc wrote:
Code:
void mov(int a, int b)
{
    __asm mov a, b
}


Is there a (&) operator or will I need to make a gcc dll?

_________________
Back to top
View user's profile Send private message Send e-mail
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Nov 29, 2009 7:02 pm    Post subject: Reply with quote

what in fucks name are you trying to do?
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