flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > [solved] fasmg - cannot compile this source

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 414
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 07 Dec 2017, 17:57
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: 414
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 07 Dec 2017, 18:04
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



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 07 Dec 2017, 18:38
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: 414
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan 07 Dec 2017, 18:45
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



Joined: 16 Jun 2003
Posts: 8356
Location: Kraków, Poland
Tomasz Grysztar 07 Dec 2017, 20:12
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


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

Website powered by rwasa.