On Fri, 13 Jan 2023, Knedlik wrote:
To be fair, I myself am not sure about this. It’s the default options,
so I would assume the watcom linker and whatever memory model open
watcom is using.
The default for OpenWatcom is the small model.
I happen to know how to do this only for the specific usage case of "void
function, takes void" and the specific combination of the 32-bit compiler
and NASM. You'll probably have to do more research to figure out the
specifics for the 16-bit compiler and how to send parameters.
With the specific combination of WCL386 and NASM you do this in NASM:
cpu 386
bits 32
segment _TEXT public align=4 class=CODE USE32
global _asmentry
_asmentry:
And in C, you declare it "extern void cdecl asmentry(void);"
-uso._______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel