flat assembler
Message board for the users of flat assembler.

Index > Main > Three tiny programs

Author
Thread Post new topic Reply to topic
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 01 Mar 2007, 08:09
Hi !

This contains three tiny programs (Bad, Worse & Ugly).

Thanks !


Description:
Download
Filename: Tiny3.zip
Filesize: 11.77 KB
Downloaded: 644 Time(s)

Post 01 Mar 2007, 08:09
View user's profile Send private message Reply with quote
Remy Vincent



Joined: 16 Sep 2005
Posts: 155
Location: France
Remy Vincent 01 Mar 2007, 12:02
Hello, Itried to modifie your great ROMAN.ASM program, only because I am not used at all to the LOWERCASE letters for roman numbers... for exañple, "7" as input ==> "vii" as output... THE PROBLEM is that my FASM compiler is producing a "ROMAN.OBJ" as compiled output... Does any one has an idea ??
Post 01 Mar 2007, 12:02
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 01 Mar 2007, 12:26
"format MS COFF" tells FASM to do so.
Post 01 Mar 2007, 12:26
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 02 Mar 2007, 04:27
Hi Remy Vincent !

I used MS COFF format so that the programs were portable (atleast across Linux and Windows32).

Now that fasm produced a .obj file you'll need a linker (sorry !),
i used GoLink from GoDevTools.com.

Besides, you can't use UPPERCASE letters because some of them
are assigned to there smaller counterparts.

eg:
v for 5 and V for 5,000
x for 10 and X for 10,000

Well, sorry for the inconvenience .
Post 02 Mar 2007, 04:27
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 02 Mar 2007, 07:46
MS COFF objects are usable on linux? Surprised
Post 02 Mar 2007, 07:46
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
tantrikwizard



Joined: 13 Dec 2006
Posts: 142
tantrikwizard 02 Mar 2007, 13:05
vid wrote:
MS COFF objects are usable on linux? Surprised
Should be, they work with DJGPP ld and cygwin ld. I'm using djgpp's ld to link MSVC COFF obj's with fasm.
Post 02 Mar 2007, 13:05
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
DOS386



Joined: 08 Dec 2006
Posts: 1905
DOS386 03 Mar 2007, 10:38
Quote:
This contains three tiny programs (Bad, Worse & Ugly).


LOGO: Great Wink

Calendar: Great Wink

Add to "official" examples ^^^ please

ROMANIA: Buggy ("-1" generates a page fault) Embarassed

_________________
Bug Nr.: 12345

Title: Hello World program compiles to 100 KB !!!

Status: Closed: NOT a Bug
Post 03 Mar 2007, 10:38
View user's profile Send private message Reply with quote
Vasilev Vjacheslav



Joined: 11 Aug 2004
Posts: 392
Vasilev Vjacheslav 03 Mar 2007, 14:40
tomasz, what about creating stand-along part of fasm examples site? something like examples.flatassembler.com (like for fasmlib)
Post 03 Mar 2007, 14:40
View user's profile Send private message Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 05 Mar 2007, 05:34
Code:
ELF_FORMAT      = 1
MS_COFF_FORMAT  = 2
PLATFORM        = MS_COFF_FORMAT

        include 'plat.inc'
    


Hey vid !

Did you see my code (the lines above) ?
The file "plat.inc" has something to look at.
If you define "PLATFORM" equal to ELF_FORMAT then the file
will be a usable on Linux. (It will need a linking step though)
Post 05 Mar 2007, 05:34
View user's profile Send private message Reply with quote
m



Joined: 28 Dec 2006
Posts: 304
Location: in
m 05 Mar 2007, 05:37
Hi NTOSKRNL_VXE !

Sorry for that Page Fault.
Oops i did not do any error checking.

By the way i would love to have my code included in official examples !
Post 05 Mar 2007, 05:37
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 05 Mar 2007, 18:21
Quote:

tomasz, what about creating stand-along part of fasm examples site? something like examples.flatassembler.com (like for fasmlib)

I like this idea. This could be wiki site that users could edit to add examples and tutorials.
Post 05 Mar 2007, 18:21
View user's profile Send private message Reply with quote
tantrikwizard



Joined: 13 Dec 2006
Posts: 142
tantrikwizard 05 Mar 2007, 19:18
OzzY wrote:
Quote:

tomasz, what about creating stand-along part of fasm examples site? something like examples.flatassembler.com (like for fasmlib)

I like this idea. This could be wiki site that users could edit to add examples and tutorials.

HEAR HEAR! (or is it HERE HERE?)
Post 05 Mar 2007, 19:18
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
dead_body



Joined: 21 Sep 2005
Posts: 187
Location: Ukraine,Kharkov
dead_body 06 Mar 2007, 20:17
Quote:
tomasz, what about creating stand-along part of fasm examples site? something like examples.flatassembler.com (like for fasmlib).


+1
Post 06 Mar 2007, 20:17
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.