Friday, 3 April 2015

Print a single charector using dl register

;to print the content of the dl register
; we need to do the following steps

; first mov 02 to the ah register

 mov ah,02

; second mov the value u wanna print into the dl register
;remember only single char is allowed

 mov dl,'a'

 

; now call the int 21h function

int 21h

; now run the program


output:-

Hope this video helps:-




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