flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar
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!
|
|||
![]() |
|
Vasilev Vjacheslav
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 |
|||
![]() |
|
Tomasz Grysztar
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.
|
|||
![]() |
|
Vasilev Vjacheslav
ok, thanks for explanation, topic can be closed
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.