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 30 Jan 2007, 14:09
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: 8354
Location: Kraków, Poland
Tomasz Grysztar 30 Jan 2007, 14:11
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 30 Jan 2007, 15:01
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 30 Jan 2007, 15:14
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: 8354
Location: Kraków, Poland
Tomasz Grysztar 30 Jan 2007, 15:14
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 30 Jan 2007, 15:33
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 30 Jan 2007, 16:13
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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.