Just as the title says, im just wondering what the equivalent to .data? in fasm is, for uninitialized data. I'm assuming maybe its through "readable" "writeable".
Posted on 2003-01-08 14:57:17 by kairon
section '.data' data readable writeable
Posted on 2003-01-08 15:11:21 by CyberGuy
No matter what section name is, if you define only uninitialized data inside it (using the data reservation directives, or data declarations with ? symbols only), fasm will mark it as uninitialized data section. For example:

section '.data' data readable writeable ; initialized data

_message db 'Hello!',0

section '.udata' data readable writeable ; uninitialized data

hwnd dd ?
buffer rb 100h

Posted on 2003-01-08 15:53:10 by Tomasz Grysztar
What is difference between db and rb? rb says reserve data (uninitialized?), but can't that be done with db ? ?
Posted on 2003-01-08 16:35:30 by comrade
It's just simplier to write "rb 100h" instead of "times 100h db ?" (or manually write 256 "?" characters :grin: ), and you can also label it (before "times" you'd have to put label followed by a colon, and that defines label of undefined data size).
Posted on 2003-01-08 16:46:06 by Tomasz Grysztar
Oh right, thanks!
Posted on 2003-01-08 17:03:53 by comrade