**broken link removed**
for windows
; requires /coff switch on 6.15 and earlier versions
.386
.model small,c
.stack 100h
.data
msg db "Hello World!",0
.code
includelib MSVCRT
extrn printf:near
extrn exit:near
public main
main proc
push offset msg
call printf
push 0
call exit
main endp
end main
for dos:
.model small
.stack 100h
.data
msg db 'Hello, world!$'
.code
start:
mov ah, 09h ; Display the message
lea dx, msg
int 21h
mov ax, 4C00h ; Terminate the executable
int 21h
end start