flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > FASMW and portable EOL in "display"

Author
Thread Post new topic Reply to topic
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
under FASW, you must display 13,10 as end-of-line (EOL). Under Linux, you must display just 10. This is problem for portability.

tomasz: could you add "10" -> "13,10" translation to FASMW?
Post 30 Jan 2007, 14:09
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
Even if I added such translation to FASMW, the problem would persist in console/DOS fasm.
Post 30 Jan 2007, 14:11
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
sorry, my bad. add it to FASM. eg., internally character "10" would be EOL, and translation to system-specific EOL would be done in FASM
Post 30 Jan 2007, 15:01
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
wisepenguin



Joined: 30 Mar 2005
Posts: 129
wisepenguin
what if you only want 10 ? for example, declaraing an array of bytes ?
Post 30 Jan 2007, 15:14
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7796
Location: Kraków, Poland
Tomasz Grysztar
I prefer to output bytes directly to the given system. Someone might want to use the LF-only behavior of 10 in DOS.
Post 30 Jan 2007, 15:14
View user's profile Send private message Visit poster's website Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
declaring array of bytes going to stdout? stdout is reserved for text purposes.

but allright if you don't like it, uglier macros for me then.
Post 30 Jan 2007, 15:33
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
wisepenguin



Joined: 30 Mar 2005
Posts: 129
wisepenguin
sorry, i realised after i replied what you were on about,
just misunderstood/misread what you were saying.
Post 30 Jan 2007, 16:13
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.