Friday, 25 October 2013

PRINTING HELLO WORLD
USING EMULATOR 8086

To print hello world first initialize the string and load that string in a register and print using interrupt

simple way of printing hello world


program:-

name "hello"        ;name of the program
org 100h               ; origin from 100h
 
     mov dx,string   ;mov the data to dx resiter
     mov ah,09h      ;   To print dx register  'mov ah,09h' and call int 21h
     int 21h
   
 ret

 string: db 'Hello world!$'    ;string declaration


output:-




Hope this videos helps






No comments:

Post a Comment