Showing posts with label hello world program using assembly language. Show all posts
Showing posts with label hello world program using assembly language. Show all posts

Thursday, October 23, 2008

hello world program using assembly language

Now this is the famous problem in programming that has been pass down from generation too generation how to print the message "hello world!" in the computer screen.



source code:

jmp start

message1 db "Hello world!$"

start:

; clear the screens
mov ax,3
int 10h

; prints the hello world
lea dx,message1
mov ah,9
int 21h

;terminates the program
int 20h