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:-
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:-

No comments:
Post a Comment