Web based solutions, tutorials, examples and help. 

  • Basic ASM Hello World

 #36  by Adrian
 Fri Oct 01, 2010 4:44 am
Here it is. Enjoy.

Code: Select all; This is a basic exmaple of the classic "Hello World" application

dosseg
.model small
.stack 100h

;Set the message data
.data
helloworld_msg db 'Hello World',0dh,0ah,'$'

;Execute code
.code
main  proc
      mov    ax,@data
      mov    ds,ax

      mov    ah,9
      mov    dx,offset helloworld_msg
      int    21h

      mov    ax,4C00h
      int    21h
main  endp
end   main

;The End. Adrian(c) Phux Development Examples