flat assembler
Message board for the users of flat assembler.
Index
> Windows > Do I need to preserve EBX register in DLL? |
Author |
|
revolution 19 May 2021, 21:36
The three main registers you can change:
EAX: the return value ECX: don't care EDX: don't care All others you must not change: EDI, ESI, EBP, EBX, ESP return with the same value they had before. But do take note that you can use your own calling convention if your DLL is used only by your code. The above only applies to things like the C (c-call) and Windows (standard call) calling conventions. |
|||
19 May 2021, 21:36 |
|
FlierMate 20 May 2021, 12:47
revolution wrote: The three main registers you can change: Thank you for the timely info! |
|||
20 May 2021, 12:47 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.