flat assembler
Message board for the users of flat assembler.

Index > Windows > .data directive

Author
Thread Post new topic Reply to topic
Ed



Joined: 22 Mar 2022
Posts: 1
Ed
Hello - Looking over FASM examples. I saw this Directive :

section '.data' data readable writable ; data definitions

I am coming from C but I did Debug code for COM files long ago.
I am familiar with .data but the rest is new.

So then I started looking for more infor on this directive in the documentation, but was not luck. Is there a better place to read up on this.. Is it unique to FASM or should I look into the MASM documentation....
Post 22 Mar 2022, 16:09
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 18591
Location: In your JS exploiting you and your system
revolution
The directive section, to create a new section in the file, and in memory when it is loaded into RAM.

".data" is an arbitrary name. You can change this and it has no effect.

The other parts are attributes for the memory access permissions when the code is loaded into RAM.
Post 22 Mar 2022, 16:36
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 541
Location: Russia
macomics
".data" there is no directive in fasm. But you can use some types of macros for fasm, which will add this functionality to the program code.
Post 22 Mar 2022, 16:37
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.