flat assembler
Message board for the users of flat assembler.
Index
> Windows > stdcall functions |
Author |
|
revolution 01 May 2008, 15:49
kernel32.dll has the string functions, all but wsprintf are stdcall. And the best part is they are documented, so no need to go messing with unknown interfaces.
|
|||
01 May 2008, 15:49 |
|
vid 01 May 2008, 16:53
or you can try fasmlib.x86asm.net for more ASMy interface (stdcall even for vararg functions, for example)
|
|||
01 May 2008, 16:53 |
|
asmrox 01 May 2008, 17:02
vid, i can write all functions myself, point of calling memset, strstr, etc is to make my code smaller. Adding external lib will make it huge!
|
|||
01 May 2008, 17:02 |
|
vid 01 May 2008, 17:06
okay then... what for do you want so small code? just as excercise?
|
|||
01 May 2008, 17:06 |
|
asmrox 01 May 2008, 17:38
small, faster = better.
also better knowleadge, im gona write my own os, in future... and better cash if i write something for $ many ppl write programs just hoping it will work, i dont want be like everyone. work - fine, no bugs, small and fast = excellent. |
|||
01 May 2008, 17:38 |
|
vid 01 May 2008, 17:56
Quote: small, faster = better. 20KB doesn't make difference. |
|||
01 May 2008, 17:56 |
|
asmrox 01 May 2008, 18:45
20kb isnt much?!
im counting every single byte to avoid off-by-one, it may be irritating to remember that [ebp+322] is pointer to structure, [ebp+24]...[ebp+56] are socket descriptors and [ebp] is buffer wich has only 24 bytes, esi = buffer [ebp+60] and ebx is open process handle. But only at begginning, day by day its easier, and after few months you count it automaticly, its fun! |
|||
01 May 2008, 18:45 |
|
vid 02 May 2008, 08:07
extra 20KB doesn't make your code noticeably slower, so your argumentation doesn't apply.
|
|||
02 May 2008, 08:07 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.