flat assembler
Message board for the users of flat assembler.
Index
> Main > Standard libraries of other assemblers? |
Author |
|
okasvi 27 Sep 2006, 15:54
masm has m32lib
|
|||
27 Sep 2006, 15:54 |
|
vid 27 Sep 2006, 18:08
thx
|
|||
27 Sep 2006, 18:08 |
|
vid 27 Sep 2006, 18:11
after 10 seconds of lookin at it... little weird, i wouldn't use that... :s
|
|||
27 Sep 2006, 18:11 |
|
MazeGen 27 Sep 2006, 19:09
yeah, m32lib is ill-designed (or it has no design at all)
|
|||
27 Sep 2006, 19:09 |
|
vid 27 Sep 2006, 19:41
has no design, looks like just a set of routines, AND is also badly written
Last edited by vid on 27 Sep 2006, 19:44; edited 1 time in total |
|||
27 Sep 2006, 19:41 |
|
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 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 |
|||
27 Sep 2006, 19:43 |
|
vid 27 Sep 2006, 19:57
hm... you can't say his library isn't clear...
|
|||
27 Sep 2006, 19:57 |
|
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 |
|||
28 Sep 2006, 08:42 |
|
vid 28 Sep 2006, 08:50
gimme your lib
|
|||
28 Sep 2006, 08:50 |
|
tom tobias 28 Sep 2006, 12:49
Octavio wrote:
Quote:
en Espanol? |
|||
28 Sep 2006, 12:49 |
|
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.
|
|||
28 Sep 2006, 13:23 |
|
vid 28 Sep 2006, 15:43
i saw. in about 10 seconds...
|
|||
28 Sep 2006, 15:43 |
|
Octavio 29 Sep 2006, 10:33
tom tobias wrote: Octavio wrote: NO just a few comments in spanish or spaninglish, but also few comments in english 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. |
|||
29 Sep 2006, 10:33 |
|
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.
|
|||
29 Sep 2006, 10:38 |
|
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, ...).
|
|||
29 Sep 2006, 10:46 |
|
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.
|
|||
29 Sep 2006, 11:03 |
|
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. |
|||
29 Sep 2006, 13:35 |
|
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. |
|||
29 Sep 2006, 13:53 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.