Sunday 2 October 2011

ASSEMBLER x86 (DOS, MASM) Hello World Example

.MODEL Small
.STACK 100h
.DATA
   db msg 'Hello, world!$'
.CODE
start:
   mov ah, 09h
   lea dx, msg ; or mov dx, offset msg
   int 21h
   mov ax,4C00h
   int 21h
end start

No comments:

Post a Comment