Hi, I have a few questions about how the "include" directive works.
1. Is there anything specific I have to do to make a variable/struct etc. visible to all ASM files when MASM is assembling?

2. Do I have to put the ".MODEL FLAT", etc. at the beginning of the include ASM file?
Posted on 2002-12-10 18:46:52 by x86asm
There is nothing special with an include file. '.Model flat' would only be needed
in the include file if it wasnt already in the main file. This is basically what
happens when a file is included.


.386
.model flat,stdcall
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib

include \special.inc
........-----
........ |
........ |
........ |> The content of the include file, will
........ | replace the "include" line.
........ |
........-----
.data
.code
start:
end start
Posted on 2002-12-10 19:03:08 by natas