The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: arunmib on April 15, 2008, 01:08:46 AM

Title: problem with 'print' command
Post by: arunmib on April 15, 2008, 01:08:46 AM
Following is the program I have written,

include C:\masm32\include\kernel32.inc
include C:\masm32\include\masm32.inc

includelib C:\masm32\lib\kernel32.lib
includelib C:\masm32\lib\masm32.lib

.code
start:
    print "Number is ",10
    invoke ExitProcess, 0
end start


when i try to compile this, following is the message i get,

Error A2008: syntax error: print

What is that I have done wrong? some help.....
Title: Re: problem with 'print' command
Post by: hutch-- on April 15, 2008, 01:34:13 AM
The operator "print" is a macro but you have not included the macro file it is contained in.


include \masm32\macros\macros.asm
Title: Re: problem with 'print' command
Post by: arunmib on April 15, 2008, 01:51:03 AM
thanks for the information hutch......