flat assembler
Message board for the users of flat assembler.
 Home   FAQ   Search   Register 
 Profile   Log in to check your private messages   Log in 
flat assembler > Compiler Internals > [solved] fasmg - cannot compile this source

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 232
Location: film "CandyMan" directed through Bernard Rose
[solved] fasmg - cannot compile this source
At first I try to create windows executable and convert it to other dos format but I must to endless wait.

Code:

include 'format/format.inc'

format  PE console
entry start

section '.text' code readable executable

start:
        mov     ah,9
        mov     edx,Hello
        int     21h

        mov     ah,4Ch
        int     21h

section '.data' data writeable readable

Hello   db      'Hello World!!!',13,10,36

section '.reloc' fixups data readable discardable



_________________
smaller is better
Post 07 Dec 2017, 17:57
View user's profile Send private message Reply with quote
CandyMan



Joined: 04 Sep 2009
Posts: 232
Location: film "CandyMan" directed through Bernard Rose
is happening this way when change "writeable" to "writable"

_________________
smaller is better
Post 07 Dec 2017, 18:04
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6676
Location: Kraków, Poland
Thank you, there was a small bug in "section" macro that is now corrected.

Well, there is also a question of whether to allow "writable" synonym for "writeable". fasm supports them both, but it is undocumented (only "writeable" is officially stated in the manual). A simple "writable equ writeable" would solve the problem anyway.
Post 07 Dec 2017, 18:38
View user's profile Send private message Visit poster's website Reply with quote
CandyMan



Joined: 04 Sep 2009
Posts: 232
Location: film "CandyMan" directed through Bernard Rose
also:

Code:
section '.data' data aaa readable


_________________
smaller is better
Post 07 Dec 2017, 18:45
View user's profile Send private message Reply with quote
Tomasz Grysztar
Assembly Artist


Joined: 16 Jun 2003
Posts: 6676
Location: Kraków, Poland
The bug was manifesting with any unrecognized attribute, no difference if it was "aaa" or "writable". The macros by default recognize only the "writeable" variant (as this is the one that was documented for fasm). In the variant of FORMAT.INC that comes with Windows headers for fasmg I have added the "define writable? writeable", however.
Post 07 Dec 2017, 20:12
View user's profile Send private message Visit poster's website 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


Powered by phpBB © 2001-2005 phpBB Group.

Main index   Download   Documentation   Examples   Message board
Copyright © 2004-2016, Tomasz Grysztar.