flat assembler
Message board for the users of flat assembler.

Index > Main > Blank or comment line after '\' => compilation error?

Author
Thread Post new topic Reply to topic
YONG



Joined: 16 Mar 2005
Posts: 7997
Location: 22° 15' N | 114° 10' E
YONG 07 Apr 2005, 12:27
Try compiling the following:

Code:
;
; Case I - Everything is fine
;

array           db      00h, 01h, 02h, 03h, \
                        04h, 05h, 06h, 07h

;
; Case II - Blank line after '\' => error: invalid argument.
;

array           db      00h, 01h, 02h, 03h, \

                        04h, 05h, 06h, 07h

;
; Case III - Comment line after '\' => error: invalid argument.
;

array           db      00h, 01h, 02h, 03h, \
;
                        04h, 05h, 06h, 07h
    


Is this a bug?

YONG
Post 07 Apr 2005, 12:27
View user's profile Send private message Visit poster's website Reply with quote
pelaillo
Missing in inaction


Joined: 19 Jun 2003
Posts: 878
Location: Colombia
pelaillo 07 Apr 2005, 12:38
No, case I is the right way.
Cases II and III needed another '\' because otherwise you will have a line ending in ',' and other line starting by 04h
Post 07 Apr 2005, 12:38
View user's profile Send private message Yahoo Messenger Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 07 Apr 2005, 12:45
Also, read here for details: http://board.flatassembler.net/topic.php?t=1223

Regards.
Post 07 Apr 2005, 12:45
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
YONG



Joined: 16 Mar 2005
Posts: 7997
Location: 22° 15' N | 114° 10' E
YONG 07 Apr 2005, 13:00
Well, I still think that the compiler should be able to skip blank or comment lines, though it seems that this is not fasm's architecture.

Thank pelaillo and JohnFound for the input.

YONG
Post 07 Apr 2005, 13:00
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.