flat assembler
Message board for the users of flat assembler.
Index
> Windows > Data allocation at runtime |
Author |
|
farrier 04 Sep 2005, 00:16
madmatt,
This works for me: Code: section '.bss' readable writeable gIst dd 0 gWnd dd 0 hInstance dd ? hth, farrier _________________ Some Assembly Required It's a good day to code! U.S.Constitution; Bill of Rights; Amendment 1: ... the right of the people peaceably to assemble, ... The code is dark, and full of errors! |
|||
04 Sep 2005, 00:16 |
|
f0dder 04 Sep 2005, 03:48
Data allocation at runtime is basically HeapAlloc or VirtualAlloc. .bss is "allocated" at load-time, not run-time (but of course then there's the issues of demand-zero paging, heh).
|
|||
04 Sep 2005, 03:48 |
|
madmatt 04 Sep 2005, 08:43
all right, thanks for all your help. I was doing it wrong you have to use the '?' symbol when defining data, or else it will be allocated in the executable.
|
|||
04 Sep 2005, 08:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.