flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar 13 Jul 2005, 10:04
You should not use "enter" yourself when you use the "proc" macros - the macro sets up the stack frame for you automatically. You can declare your local variable this way:
Code: local var:PROGRAMM and the macro will handle the rest. BTW, in the latest version of includes (I'm just documenting it now), there is no more "cproc" variant of "proc" macro, to define the c convention procedure you will have to do it this way (like in TASM): Code: proc On_MenuSelect c, MenuID |
|||
![]() |
|
djca 13 Jul 2005, 13:45
thaxnx for the fast reply. I tried to declare local vars like
.var enter but it didn't work with the stack rather declaring the data prior the procedure code. With the local directive it is working fine. |
|||
![]() |
|
Tomasz Grysztar 13 Jul 2005, 14:32
See the new documentation on Win32 Headers for all the information about how to use the new macros.
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.