I want to know if there is a way of calling in a .c assembly code? I want to put this code in my .c file
The assembly code i want to execute in .c file to return the address
1. mov eax, 0x2d 2. mov ebx, 0 3. int 0x80 I know the answer is put eax.
This is the part of .c file:
1. void function(void) 2. { 3. void *sp; 4. sp = eax; 5. fprintf(stderr, "system break: %p\n", sp); 6. } How can I do it?