hi!
how do i use C variables within a __asm__() statement?
assume i have the following function:
and i want to use hardcoded variables instead of $0x1 for example.Code:void doit(void) { __asm__("movl $0x1, %eax\n" "movl $0x1, %ebx\n" "int $0x80\n"); }
how would i do that?
i tried
but that didnt seem to work.Code:__asm__(".include \"defines.asm\"\n");
can i hardcode the values of the variables in a C header file and use them afterwards from __asm__()?
thanks