Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
but i think whats wrong is the functions get called and after they do what they do, they "ret" but because it has been after an "int" it should be a "iret" so the sys goes crazy, help???
GLneo wrote:but i think whats wrong is the functions get called and after they do what they do, they "ret" but because it has been after an "int" it should be a "iret" so the sys goes crazy, help???
The C functions get "CALLed" from within the assembly stub, and therefore should use a "RET" to return to the assembly stub.
The problem is your assembly stub, which pushes a pile of general registers onto the stack that are never popped off again. Try changing to:
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.