Declare the function with the __declspec(naked)
modifier.
Create undecorated function in Borland C
Pregunta
void empty() { }
will be compiled to
push ebp
mov ebp, esp
ret
How do I declare the function so that it has no "decoration" code? just plain ret
.
If that is not possible, is this possible to define completely assembler function inside the .C
file? It is possible to define assembler function in the .asm
file.
Solución
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow