I've been dabbling with FASM and I'd like to get a little more serious.
I know there are a few of the Gurus who do a lot of mixed FASM / PB coding, so I'd like to know what set up you have.
What editor do you use? Have you automated your builds? Any tips?
FASM coders: what setup do you use
-
dontmailme
- Enthusiast

- Posts: 537
- Joined: Wed Oct 29, 2003 10:35 am
Sure, it's not much.GedB wrote:Any chance you could share that code of yours?
Code: Select all
LibName.s = "MyLib"
; create the new batch file
CreateFile(0, "buildlib.bat")
; examine subdirectory ASM for all .asm files
; and build the batch file
ExamineDirectory(0,"ASM","*.ASM")
Repeat
Result = NextDirectoryEntry()
If Result
FSource.s = DirectoryEntryName()
FDest.s = StringField(FSource, 1, ".") + ".obj"
WriteStringN("fasm ASM/" + FSource + " " + FDest)
EndIf
Until Result=0
; add commands to batch file to call lcclib and delete
; the created obj files
WriteStringN("lcclib/out:" + LibName + ".lib *.obj")
WriteStringN("del *.obj")
; add a pause so we need to press a key after all asm files
; are compiled. That way we can check for errors
WriteStringN("pause")
CloseFile(0)
; call the batch file and wait until it has finished
RunProgram("buildlib.bat","","",1)
; after that call LibraryMaker
RunProgram("../LibraryMaker.exe")Additional information...
My directory structure is like this.
Program Files/PureBasic/LibrarySDK
- contains LibraryMaker.exe
Program Files/PureBasic/LibrarySDK/MyLib
- contains FAsm.exe , lcclib.exe , MyLib.desc
and the compiled version of this PB code
Program Files/PureBasic/LibrarySDK/MyLib/ASM
- contains all .asm files

