How can I create an Assembly program WITHOUT using libraries?

Posted by Newbie on Stack Overflow See other posts from Stack Overflow or by Newbie
Published on 2010-04-11T13:17:06Z Indexed on 2010/04/11 13:23 UTC
Read the original article Hit count: 159

Filed under:
|
|
|

Hello.

I've literally only just started looking to learn Assembly language. I'm using the NASM assembler on Windows Vista.

Usually, when I begin to learn a new language, I'll copy someone else's Hello World code and try to understand it line-by-line. However, I'm finding it suprisingy difficult to find a Hello World program that doesn't reference other libraries! You see, there's no point trying to understand each line of the code if it is closely linked with a whole library of additional code!

One of the reasons I want to learn Assembly is so that I can have near complete control over the programs I write. I don't want to be depending on any libraries.

And so my question is this: Can anyone give me NASM-compatible Assembly code to a completely stand-alone Hello World program that can output to the Windows Vista console?

Alternatively, I appreciate that a library may be required to tell the pogram WHERE to print the output (ie. the Windows console). Other than that, I can't see why any libraries should be required. Am I overlooking anything?

© Stack Overflow or respective owner

Related posts about assembly

Related posts about nasm