flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > 2 small libc version bugs |
Author |
|
revolution 03 Aug 2011, 04:56
epinull wrote: 1. Fasm doesn't return the correct exit code. |
|||
03 Aug 2011, 04:56 |
|
epinull 03 Aug 2011, 07:10
You're right except that the ccall macro has the line: and esp,-1 which seems to missalign the stack before exit is called. At least I think that's what's happening. I'm fairly new to assembly, so I might be wrong...
|
|||
03 Aug 2011, 07:10 |
|
revolution 03 Aug 2011, 07:28
Oh I see. Yeah, the ccall macro used is not the same as the usual one. Indeed the stack alignment code can cause the return value to be positioned further up the stack.
|
|||
03 Aug 2011, 07:28 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.