flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Atempt (unsuccessful) to make FASM compiler as procedure. |
Author |
|
scientica 10 Sep 2003, 04:38
JohnFound wrote: In recent version of FASMW, compiler itself runs in separate thread. Wouldn't it be possiböle to change the return address to a place where it "returns" to a ExitThread call? _________________ ... a professor saying: "use this proprietary software to learn computer science" is the same as English professor handing you a copy of Shakespeare and saying: "use this book to learn Shakespeare without opening the book itself. - Bradley Kuhn |
|||
10 Sep 2003, 04:38 |
|
Tomasz Grysztar 10 Sep 2003, 08:45
You have to save and restore stack frame in order to get it working with ret.
|
|||
10 Sep 2003, 08:45 |
|
JohnFound 10 Sep 2003, 08:49
Privalov wrote: You have to save and restore stack frame in order to get it working with ret. I am using standard enter/return macroses. Do you mean something similar? |
|||
10 Sep 2003, 08:49 |
|
Tomasz Grysztar 10 Sep 2003, 09:39
No, you have to store initial ESP in some variable and restore it before using ret instruction, because position of ESP register on calling the exit_program label is indetermined.
|
|||
10 Sep 2003, 09:39 |
|
JohnFound 10 Sep 2003, 10:04
Thanks, it works now.
|
|||
10 Sep 2003, 10:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.