NASM - The Netwide Assembler
NASM Forum => Programming with NASM => Topic started by: ngochuan1st on September 24, 2012, 08:00:07 AM
-
i don't know how to create include files (.inc), not use "win32.inc"
-
Well "%include" just does a "cut and paste", so it has to be valid Nasm syntax, but you could put anything you want in an ".inc" file (doesn't even have to be named ".inc"!) - even code, although it might not be considered "good form". A file like "win32.inc" just defines constants, structures, etc. and probably includes macros you can use freely in your code without having to worry about it. You don't have to use it. "push -11" does the same thing as "push STD_OUTPUT_HANDLE", it's just more "self-documented" to use the defined names.
Best,
Frank
-
Thank you very much :D