; hello1.asm - Windows program to print "Hello, world" using Irvine library ; To asemble/run using MASM 6.15 ; ; set include=\masm615\include ; set lib=\masm615\lib ; ml /Cx /c /coff hello1.asm ; link32 hello1.obj kernel32.lib irvine32.lib /subsystem:console ; hello1 include irvine32.inc ; from Irvine CDROM .stack 4096 .data greeting byte "Hello, world", 13, 10, 0 ; message to write .code main proc mov edx, offset greeting invoke WriteString ; irvine.inc: write NUL terminated string pointed to by edx exit ; irvine.inc: a macro that calls ExitProcess main endp end main