flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > trouble with comment

Author
Thread Post new topic Reply to topic
tsdb0t



Joined: 27 Oct 2010
Posts: 3
tsdb0t 18 Oct 2012, 08:10
why doesn't work

Code:
db '1',\
   '2',\
  ;'2 ',\
   '3'
    
Post 18 Oct 2012, 08:10
View user's profile Send private message Reply with quote
JohnFound



Joined: 16 Jun 2003
Posts: 3499
Location: Bulgaria
JohnFound 18 Oct 2012, 08:23
Because "\" on the commented line is part of the comment.
Following should work:
Code:
db '1',\
   '2',\
\  ;'2 ',\
   '3'
    

_________________
Tox ID: 48C0321ADDB2FE5F644BB5E3D58B0D58C35E5BCBC81D7CD333633FEDF1047914A534256478D9
Post 18 Oct 2012, 08:23
View user's profile Send private message Visit poster's website ICQ Number Reply with quote
tsdb0t



Joined: 27 Oct 2010
Posts: 3
tsdb0t 18 Oct 2012, 08:41
thanks
Post 18 Oct 2012, 08:41
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.