flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > little bug |
Author |
|
Tomasz Grysztar 16 May 2005, 13:38
This is intended behavior - the new macro detect whether you forgot to put "return" macro there and makes it for you in such case. If you want to do the manual return, don't use "proc" macro!
|
|||
16 May 2005, 13:38 |
|
Vasilev Vjacheslav 16 May 2005, 13:55
ok, i found other way, i modified stdcall.inc and cdecl.inc
i have removed two lines from endp macro (in both files): Code: ... else return ... seems to work ok with any style of return, including manual ps. thanks for very quick answer |
|||
16 May 2005, 13:55 |
|
Tomasz Grysztar 16 May 2005, 14:26
This is a bad solution: the "proc" macro is designed to set up all for you automatically, it sets up the stack frame for you, and you should use "return" macro to make it restore the stack and return from procedure correctly. If you do any manual tricks, don't use "proc", but write the procedure yourself from scratch - first, you will better see what's happening, second, your code won't stop working even if the "proc" way of setting up the stack is changed.
|
|||
16 May 2005, 14:26 |
|
Vasilev Vjacheslav 16 May 2005, 14:55
ok, thanks for explanation, topic can be closed
|
|||
16 May 2005, 14:55 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.