libFASM

Developed or developing a new product in PureBasic? Tell the world about it.
Winduff
User
User
Posts: 40
Joined: Mon Apr 17, 2006 10:31 am

libFASM

Post 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 :-)
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

That is awesome! Any chance for a english translation anybody?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Post by Xombie »

So....errr... what would this allow me to do? I'm kinda slow <_<
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Sir Xombie De Snail!!!


Noooo!! Don't hurt me!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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.)
@}--`--,-- A rose by any other name ..
MVXA
User
User
Posts: 18
Joined: Tue Feb 22, 2005 11:09 pm
Contact:

Post by MVXA »

for example:
you can use assembler as a script language in your program and it's faster
than all other interpreter languages.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

and you can write a asm-compiler in five minutes :lol:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply