The MASM Forum Archive 2004 to 2012

Specialised Projects => Compiler Based Assembler => Topic started by: Randall Hyde on March 18, 2007, 05:52:31 AM

Title: CFASM is now available on Webster
Post by: Randall Hyde on March 18, 2007, 05:52:31 AM
Hi All,

I've ported the FASM source code to HLA (that is, changed it to use HLA syntax) and I've modified the code so that you can call it from C. You can use this code (subject to the FASM license, of course) as the back-end of a compiler, assembler, or other product.  You can grab a copy from http://webster.cs.ucr.edu/cfasm.zip.

Included are the hfasm.hla/hfasm.hhf source files for the assembler and a cfasm.c C program that provides necessary library support for the FASM code as well as demonstrate how to call FASM from C.

This is a first release and it's probably got lots of defects that need stomping out, but it has reached the point that it will assemble the FASM.ASM (original) source file producing identical object code to the file that FASM.EXE produces.

Enjoy!
Cheers,
Randy Hyde
Title: Re: CFASM is now available on Webster
Post by: japheth on March 18, 2007, 04:58:20 PM

Hi,

thanks for this upload! However, the makefile calls a hla.exe/hla.com which is not supplied in this package and which I don't own.
Title: Re: CFASM is now available on Webster
Post by: Randall Hyde on March 23, 2007, 10:29:20 PM
Quote from: japheth on March 18, 2007, 04:58:20 PM

Hi,

thanks for this upload! However, the makefile calls a hla.exe/hla.com which is not supplied in this package and which I don't own.


You can grab a copy of HLA from webster at
http://webster.cs.ucr.edu

or more directly:

http://webster.cs.ucr.edu/AsmTools/HLA/dnld.html

However, I wouldn't jump right on this. The cFASM upload has quite a few problems that I've fixed recently. I'll probably upload a new copy this weekend.
Cheers,
Randy Hyde