Page 1 of 1

libFASM

Posted: Thu May 18, 2006 10:35 pm
by Winduff
Good evening,

This is FASM in a userlib.

The package contains a Userlib, Resident, a readme.txt, the source from the flat assembler for the MS COFF format in assembler and a few examples.

Here I would like to thank TS-Soft for his great help and motivation!

Sorry for releasing this so late, my week has been terrible. And it's getting worse, as I have a lot to do for school at the moment (exams etc.)

I hope you have fun with the library :-)

Download here

Regards
MVXA

I, winduff am not MVXA, just translating his text for you... well - I hope I translated it alright, if not ask your questions wich I will forward to mvxa :-)

Posted: Thu May 18, 2006 11:55 pm
by Shannara
That is awesome! Any chance for a english translation anybody?

Posted: Fri May 19, 2006 12:23 am
by ts-soft
Shannara wrote:That is awesome! Any chance for a english translation anybody?
I'm not so good in english, but i hope it's help you to understand the lib.
For more info's see the examples.
Readme.txt wrote: * FASM_SetCallback(lValue.l, *pCallBack.Long)
^ Replacement for a Callback in FASM
FASM uses the callbacks in your source, see examples

lValue.l
Select the callback, see following constants:

Enumeration 1 ;FASM
#FASM_Print
this function emulate the console-output

#FASM_Open
fasm called this function to open the source and to create executable
1. to read/open source
2. to create executable
this callbackfunction should emulate the createfile-api

#FASM_Write
fasm called this function only ones, to write the output
this callbackfunction should emulate the writefile-api

#FASM_Read
this function is to read the source completly
this callbackfunction should emulate the readfile-api

#FASM_Close
this callbackfunction should emulate the closehandle-api, to close file

#FASM_Seek
this is to get filesize

EndEnumeration

*pCallBack.Long
pointer to callbackfunction, see example


* FASM_InputFile(@sDateiName.s)
the sourcefile for fasm, you can also use a memoryblock

@sDateiName.s
pointer to sourcefile or mem

* FASM_OutputFile(@sDateiName.s)
the outputfile for fasm, you can also use a memoryblock

@sDateiName.s
pointer to outputfile or mem


* FASM_Compile()
start compiling
(create the "executable" on the fly, you can also run from mem)

Posted: Fri May 19, 2006 1:48 am
by Xombie
So....errr... what would this allow me to do? I'm kinda slow <_<

Posted: Fri May 19, 2006 2:07 am
by Fangbeast
Sir Xombie De Snail!!!


Noooo!! Don't hurt me!

Posted: Fri May 19, 2006 4:01 am
by Dare2
This looks exciting!


What does it do?




(BTW, your english is fine, ts-soft! So my cluelessness has nothing to do with your translation and everything to do with the processing power of my brain.)

Posted: Fri May 19, 2006 11:53 am
by MVXA
for example:
you can use assembler as a script language in your program and it's faster
than all other interpreter languages.

Posted: Fri May 19, 2006 4:36 pm
by ts-soft
and you can write a asm-compiler in five minutes :lol: