View previous topic :: View next topic |
Author |
Message |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Sat Nov 28, 2009 8:13 pm Post subject: MVC++ 2008 - Inline asm? |
|
|
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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sat Nov 28, 2009 9:34 pm Post subject: |
|
|
Code: | void mov(int a, int b)
{
__asm mov a, b
} |
_________________
|
|
Back to top |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Sun Nov 29, 2009 1:25 am Post subject: |
|
|
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 |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Sun Nov 29, 2009 1:53 am Post subject: |
|
|
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 |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Sun Nov 29, 2009 2:52 am Post subject: |
|
|
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 |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Sun Nov 29, 2009 9:18 am Post subject: |
|
|
Code: | void Function(int a, int b)
{
__asm {
mov a, b
}
} |
|
|
Back to top |
|
 |
AlbanainRetard Master Cheater
Reputation: 0
Joined: 02 Nov 2008 Posts: 494 Location: Canada eh?
|
Posted: Sun Nov 29, 2009 11:45 am Post subject: |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Sun Nov 29, 2009 7:02 pm Post subject: |
|
|
what in fucks name are you trying to do?
|
|
Back to top |
|
 |
|