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
Hi !

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

Thanks !


Description:
Download
Filename: Tiny3.zip
Filesize: 11.77 KB
Downloaded: 382 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
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
"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
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
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
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: 1901
DOS386
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
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
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
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
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
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
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.