|
-
Aug 24th, 2007, 10:34 PM
#1
Thread Starter
Frenzied Member
Call function by location?
well in c++ inline asm I wanna call a function based on location like.
__asm{
Call 0040001
}
instead of doing
const int loc = 0x0040001;
__asm{
call loc
}
-
Aug 25th, 2007, 04:54 AM
#2
Re: Call function by location?
will set eax to 0x18 so im assuming if you do.....
it should work Sorry i ain't at home so i cannot verify it but anything is worth a try!
Last edited by Paul M; Aug 25th, 2007 at 04:58 AM.
-
Aug 25th, 2007, 06:01 PM
#3
Thread Starter
Frenzied Member
Re: Call function by location?
 Originally Posted by Hell-Lord
will set eax to 0x18 so im assuming if you do.....
it should work  Sorry i ain't at home so i cannot verify it but anything is worth a try!
nope
-
Aug 26th, 2007, 10:51 AM
#4
Member
Re: Call function by location?
The address can not be an immediate value.
mov eax, 40001h
call eax
-
Aug 27th, 2007, 11:45 AM
#5
Thread Starter
Frenzied Member
Re: Call function by location?
 Originally Posted by minor28
The address can not be an immediate value.
mov eax, 40001h
call eax
When compiled it is(for some things)...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|