NASM - The Netwide Assembler

NASM Forum => Using NASM => Topic started by: watlers world on April 17, 2012, 12:20:56 PM

Title: historical win16 example?
Post by: watlers world on April 17, 2012, 12:20:56 PM
I see places that say nasm can make win16 apps
and I see a linker alink that suggests this also
is or was this ever correct?

does a nasm win16 example exsist?


curiosity...
Title: Re: historical win16 example?
Post by: Keith Kanios on April 17, 2012, 10:53:55 PM
Japheth (http://www.japheth.de/) has a a simple 16-bit Windows "hello world" (http://www.japheth.de/JWasm/Win16.html) example -- just needs translating from JWasm (MASM-like syntax) to NASM, if desired.
Title: Re: historical win16 example?
Post by: watlers world on April 18, 2012, 12:35:48 PM
thanks for the help

when searching I did find that example
but I have just started working with nasm

would the translation be somthing that a beginner in nasm could do?

I would like to see a win16 example that nasm can use
Title: Re: historical win16 example?
Post by: Keith Kanios on April 18, 2012, 11:52:55 PM
would the translation be somthing that a beginner in nasm could do?

If that implies a beginner at assembly language and programming in general, probably not.

There are many things that MASM and JWasm do implicitly, e.g. handling the PASCAL calling convention, that NASM requires you to do explicitly.

My question for you would be, why target Win16 instead of Win32?
Title: Re: historical win16 example?
Post by: watlers world on April 19, 2012, 12:03:38 PM
so far I've found that assembly is not to difficult
but...
as you said figuring out an exact assembler can be

there are some excelent nasm win32 examples

in the history of nasm
was there ever a win16 example?

why both win32 and win16?
does nasm support both?

even when win64 is current and win16 is long gone
I'm interested in all of history


Title: Re: historical win16 example?
Post by: alexfru on November 06, 2017, 12:15:42 PM
Here's a simple Win16 app for NASM (https://github.com/alexfru/Win16asm), very similar to the one mentioned above.