flat assembler
Message board for the users of flat assembler.

Index > Main > Standard libraries of other assemblers?

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


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 26 Sep 2006, 10:04
Do some other assemblers have standard. Because i want to look at those, steal interesting parts, and make fun of badly designed or writen ones Wink

only one i found yet was HLA... at first peek it seems well designed and not-that-well written Wink

Seems Randall had VERY similar ideas about standard library design as me.
Post 26 Sep 2006, 10:04
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
okasvi



Joined: 18 Aug 2005
Posts: 382
Location: Finland
okasvi 27 Sep 2006, 15:54
masm has m32lib
Post 27 Sep 2006, 15:54
View user's profile Send private message MSN Messenger Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 27 Sep 2006, 18:08
thx
Post 27 Sep 2006, 18:08
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 27 Sep 2006, 18:11
after 10 seconds of lookin at it... little weird, i wouldn't use that... :s
Post 27 Sep 2006, 18:11
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 977
Location: Czechoslovakia
MazeGen 27 Sep 2006, 19:09
yeah, m32lib is ill-designed (or it has no design at all) Sad
Post 27 Sep 2006, 19:09
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 27 Sep 2006, 19:41
has no design, looks like just a set of routines, AND is also badly written Razz


Last edited by vid on 27 Sep 2006, 19:44; edited 1 time in total
Post 27 Sep 2006, 19:41
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Kain



Joined: 26 Oct 2003
Posts: 108
Kain 27 Sep 2006, 19:43
vid wrote:
Do some other assemblers have standard. Because i want to look at those, steal interesting parts, and make fun of badly designed or writen ones Wink

only one i found yet was HLA... at first peek it seems well designed and not-that-well written Wink

Seems Randall had VERY similar ideas about standard library design as me.


His primary goal was to get the library out asap and think about writing it better later or leaving that job to others. It's going to end up on sourceforge after some consideration is put into making it portable across more OSes.

_________________
:sevag.k
Post 27 Sep 2006, 19:43
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 27 Sep 2006, 19:57
hm... you can't say his library isn't clear...
Post 27 Sep 2006, 19:57
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
Octavio 28 Sep 2006, 08:42
I think there is no standard in assembly.
Here you can find various libraries and code snippets.
http://www.programmersheaven.com/zone5/cat17/index.htm
Also my Os has its library, and 100% of octasm programmers (octavio) think it is very readable Smile
Post 28 Sep 2006, 08:42
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 28 Sep 2006, 08:50
gimme your lib Wink
Post 28 Sep 2006, 08:50
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
tom tobias



Joined: 09 Sep 2003
Posts: 1320
Location: usa
tom tobias 28 Sep 2006, 12:49
Octavio wrote:
Quote:

100% of octasm programmers (octavio) think it is very readable

en Espanol?
Smile
Post 28 Sep 2006, 12:49
View user's profile Send private message Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 28 Sep 2006, 13:23
Stay away from m32lib; it indeed has no design but is a hodgepodge of - often - bad code. And there's a bunch of bugs in there, some of which won't be fixed.
Post 28 Sep 2006, 13:23
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 28 Sep 2006, 15:43
i saw. in about 10 seconds...
Post 28 Sep 2006, 15:43
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
Octavio 29 Sep 2006, 10:33
tom tobias wrote:
Octavio wrote:
Quote:

100% of octasm programmers (octavio) think it is very readable

en Espanol?
Smile

NO just a few comments in spanish or spaninglish, but also few comments in english Smile
I admit that is chaotic and hard to read (for others) but has a lot of code
and makes development easier.
But assembly programmers are not limited to assembly libraries, it is easy
to use a library written in another programing language since assembly supports all calling conventions.On my Os i use the ZLIB wich is written in
C ,there is no need to translate everthing to assembly.
Post 29 Sep 2006, 10:33
View user's profile Send private message Visit poster's website Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 29 Sep 2006, 10:38
Translating just for the sake of translating is silly and a waste of time. There might be a point if you're going to improve something, and improve it substantially... but most times, efforts can be spent better elsewhere.
Post 29 Sep 2006, 10:38
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 29 Sep 2006, 10:46
like writing library that returns error ALWAYS in CF and thus prevents you from hell error checking in C-ish libraries (libc, win32 api, ...).
Post 29 Sep 2006, 10:46
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 29 Sep 2006, 11:03
Error in CF isn't that hot an idea, IMHO. Often you don't need a boolean fail/success, but a completion code - carry can't give you that. Of course you can then add a "GetLastError", but that means even more function calls and whatnot. If you're doing internal code, sure, CF can be nifty enough. If you're writing libraries, stick to the standard ABI - makes it easier for more people to benefit from the work.
Post 29 Sep 2006, 11:03
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 29 Sep 2006, 13:35
what is ABI?

if you mean something like windows api returns error - no. sometimes error = 0, sometimes 1, sometimes non 0, sometimes -1, sometimes 7FFFFFFFh, sometimes error code is returned directly. most times GetLastError is also set, but not always... ke?

i want to FASM users benefit from my work, not as many people as possible. Too much generality causes less power.
Post 29 Sep 2006, 13:35
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
f0dder



Joined: 19 Feb 2004
Posts: 3175
Location: Denmark
f0dder 29 Sep 2006, 13:53
ABI = Application Binary Interace. In the case of x86-32 this generally means preserve {EBX,ESI,EDI,EBP} as well as flags, {EAX,ECX,EDX} are trashable, and return values go in EAX or EDX:EAX (or whatever for floating-point).

Back when I did much (and almost exclusively, for a while) assembly programming many years ago, I bitched at why compilers didn't use CF, and used it myself. But today it's irrelevant optimization-wise (and sorta was back then anyway), and since this thread is titled "Standard libraries of other assemblers", IMHO following the standard ABI is most important.
Post 29 Sep 2006, 13:53
View user's profile Send private message Visit poster's website 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.