Hello;
I would like someone help me to correct this asm code, it compile but has no effect! Did I miss something ? the compiler alert me about two warnings :
- warning: 'naked' attribute directive ignored [-Wattributes]
- warning: no return statement in function returning non-void [-Wreturn-type]
I use gcc compiler.
Regards
my intel syntax didn't work
Page 1 of 12 Replies - 638 Views - Last Post: 04 December 2012 - 07:14 AM
Replies To: my intel syntax didn't work
#2
Re: my intel syntax didn't work
Posted 04 December 2012 - 07:09 AM
Hello; I forget to past the source code of my function . Here it is :
Thank you
void __declspec(naked) *kernel_addr()
{
asm("mov eax, fs:[0x30]\n");
asm("mov eax, [eax+0x0c]\n");
asm("mov eax, [eax+0x1c]\n");
asm("mov eax, [eax]\n");
asm("mov eax, [eax+0x08]\n");
asm("ret\n");
}
Thank you
#3
Re: my intel syntax didn't work
Posted 04 December 2012 - 07:14 AM
** Topic moved to assembly **
Page 1 of 1
|
|

New Topic/Question
Reply


MultiQuote



|