flat assembler
Message board for the users of flat assembler.

Index > Main > looking for FASM tutorials

Author
Thread Post new topic Reply to topic
hamsterman



Joined: 11 Sep 2009
Posts: 3
hamsterman
Hi,
I've started learning assembler recently, and its going quite well. I understand the use of basic instructions, and if I need something more complicated there is a good reference in this site.
My problem is that I can't find any info about use of segments.
Some examples use
Code:
.code
.data    
some,
Code:
section '.code' code readable executable
section '.data' data readable writable    
and if I try to write a .com application neither seems to work.

Do you know any articles/tutorials explaining that stuff?
Any replies appreciated
Post 12 Sep 2009, 07:12
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17671
Location: In your JS exploiting you and your system
revolution
sections are only for .exe files. com files do not support sections, they are purely a binary image.
Post 12 Sep 2009, 07:38
View user's profile Send private message Visit poster's website Reply with quote
hamsterman



Joined: 11 Sep 2009
Posts: 3
hamsterman
Thanks, that covers one point.
still...
Is a segment the same as a section?
What does the syntax of declaring a segment depend on?
What kinds of sections are there?
and so on...
Post 12 Sep 2009, 15:59
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17671
Location: In your JS exploiting you and your system
revolution
hamsterman wrote:
Thanks, that covers one point.
still...
Is a segment the same as a section?
What does the syntax of declaring a segment depend on?
What kinds of sections are there?
and so on...
http://flatassembler.net/docs.php?article=manual#2.4.2
Post 13 Sep 2009, 04:33
View user's profile Send private message Visit poster's website Reply with quote
hamsterman



Joined: 11 Sep 2009
Posts: 3
hamsterman
Thank you.
didn't notice that part
Post 13 Sep 2009, 07:10
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.