when i program in 16 bit assembly, i have some old 16 bit libs. can i use them with fasm? if possible, how to do?
Posted on 2002-11-12 07:13:39 by python
libs ? .lib ? .obj ? .asm ?

Please be a bit more precise if you want a precise answer...

Posted on 2002-11-12 07:15:28 by JCP
python, if it is possible, you'd have to create a 16 bit object file with FASM and use a 16 bit linker to put them together. FASM cannot do it by itself - the linker is required.
Posted on 2002-11-12 07:26:50 by bitRAKE
I think that python was very clear.
he said he had some old 16 bit libs.

He would like to use them in his code
example link his ASM files to .libs

I don't use fasm so I don't know if
it has the ability to link to libs, if it
will produce obj files of your source
where you can use LINK to link it to
a lib, then it would work, but if fasm
is a compiler and linker all in one then
you will have to ask the Author about
this ability.

Posted on 2002-11-12 07:29:30 by Zcoder

lib is a very generical term... I have seen plenty of lib formats, that doesn't mean anything...
Also, since it is a win32 assembler messageboard, people must not expect members to be familiar with old 16 bit dos programming.

That's all...
Posted on 2002-11-12 07:42:46 by JCP

format MZ COFF


Then link it with an old version of link.exe,
or use an old version of lib to archive it.
Posted on 2002-11-12 10:46:36 by slop
thanks to everybody! i know here is called "win32asm community". but i like fasm, it's small and effective. i'd like to use it to do everything, not only in 32 bit win32 programming, also in 16 bit dos programming. now i've got help. again, thanks!
Posted on 2002-11-13 05:48:59 by python
2 Slop:

Sorry but this not works at all:

at first: "format MZ COFF" is invalid. maybe you mean "format MS COFF" ?

at second "bits16" is invalid too maybe you mean "use16"?

at third: even when it's compiles to obj file, I can't link it with dos linker, (I am using TLINK).

Here is the source that I try:

format MS COFF

section 'CODE' readable writeable executable
; "section 'CODE' code" not works too... :(
mov ax,$4c00
int $21

I need to use fasm for dos programming too, but I can't make fasm to generate dos object file. if someone can help me, it will be great.
Posted on 2002-11-14 02:06:40 by JohnFound
1 Slop:

Sorry but this not works at all:

"format MS COFF" is invalid for the 16-bit DOS app.,maybe you mean "format MZ" ?

The COFF format is valid only for the Win32 environment


Posted on 2002-11-14 03:55:30 by Vortex
Hi Vortex, and John

You are both right,

I meant
format MZ OBJ
, but hadn?t checked it.

The thing is that old object format is not the same that the new one.

But the solution can be to find a Posted on 2002-11-14 11:08:01 by slop