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
}
Printable View
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
}
will set eax to 0x18 so im assuming if you do.....Code:mov eax, 18h
it should work ;) Sorry i ain't at home so i cannot verify it but anything is worth a try!Code:Call 18h
nopeQuote:
Originally Posted by Hell-Lord
The address can not be an immediate value.
mov eax, 40001h
call eax
When compiled it is(for some things)...Quote:
Originally Posted by minor28