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

1 comment:

skcayon said...

hi can ask what assembler do you use or to compile assembly code, in your print screen "Hello world", how do you run it?.i hope you reply my msg. tnx ahead...