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".
section '.data' data readable writeable
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
What is difference between db and rb? rb says reserve data (uninitialized?), but can't that be done with db ? ?
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).
Oh right, thanks!