flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
afw2004 26 Sep 2005, 16:25
How can I declare array of structures as a local variable?
C example: void myfunc() { POINT x[8]; } How to write this in Fasm? |
|||
![]() |
|
Reverend 26 Sep 2005, 19:27
Code: myfunc: x POINT rb sizeof.POINT*7 |
|||
![]() |
|
vid 26 Sep 2005, 20:14
not quite... in this case he couldn't us "call myfunc". look here, chapter 1.3
|
|||
![]() |
|
afw2004 27 Sep 2005, 07:13
Thanks
![]() |
|||
![]() |
|
Tomasz Grysztar 27 Sep 2005, 18:09
You can do it this way:
Code: proc myfunc local x[8]:POINT ret endp see Win32 Headers documentation, section 1.3 - vid already linked it. |
|||
![]() |
|
vid 28 Sep 2005, 10:01
btw, Tomasz: please make anchors (not sure if it is the right word) in the text, so i can link like win32#1_3
|
|||
![]() |
|
Tomasz Grysztar 28 Sep 2005, 10:34
OK, it goes like http://flatassembler.net/docs.php?article=win32#1.3
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.