EXAMP1.ASM:
;title Hello World Program
; This program displays "Hello, World!"
dosseg
.model small
.stack 100h
.data
hello_message db 'Hello, World!',0dh,0ah,'$'
.code
main proc
mov ax,@data
mov ds,ax
mov ah,9
mov dx,offset hello_message
int 21h
mov ax,4C00h
int 21h
main endp
end main
And when I compile this occurs:
C:\>CD NICKS
C:\Nicks>nasm EXAMP1.ASM
EXAMP1.ASM:5: error: parser: instruction expected
EXAMP1.ASM:6: error: parser: instruction expected
EXAMP1.ASM:12: error: parser: instruction expected
EXAMP1.ASM:17: error: comma or end of line expected
EXAMP1.ASM:22: error: parser: instruction expected
EXAMP1.ASM:23: error: parser: instruction expected
C:\Nicks>

