News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

problem with 'print' command

Started by arunmib, April 15, 2008, 01:08:46 AM

Previous topic - Next topic

arunmib

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.....

hutch--

The operator "print" is a macro but you have not included the macro file it is contained in.


include \masm32\macros\macros.asm
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

arunmib

thanks for the information hutch......