0% found this document useful (0 votes)
13 views3 pages

Task LAB1

The document contains two assembly language programs that output text to the screen. The first program outputs the string "Iraq" and the second outputs the string "Hello World". Both programs initialize the stack, define a main procedure, use interrupts to display each character's ASCII value, and end the program.

Uploaded by

m.ahsndanial
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views3 pages

Task LAB1

The document contains two assembly language programs that output text to the screen. The first program outputs the string "Iraq" and the second outputs the string "Hello World". Both programs initialize the stack, define a main procedure, use interrupts to display each character's ASCII value, and end the program.

Uploaded by

m.ahsndanial
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

LAB :1

Tasks:01
.model small

.stack 100h

.code

Main proc

mov DL, 'I'

mov AH, 2

int 21h

mov DL, 'q'

mov AH, 2

int 21h

mov DL, 'r'

mov AH, 2

int 21h

mov DL, 'a'

int 21h

mov ah,4ch

int 21h

main endp

end main
TASKs:02;
.model small

.stack 100h

.code

Main proc

mov DL, 'H'

mov AH, 2

int 21h

mov DL, 'e'

mov AH, 2

int 21h

mov DL, 'l'

mov AH, 2

int 21h

mov DL, 'l'

mov AH, 2

int 21h

mov DL, 'o'

mov AH, 2

int 21h

mov DL, ' '

mov AH, 2

int 21h

mov DL, 'W'

mov AH, 2

int 21h

mov DL, 'o'


mov AH, 2

int 21h

mov DL, 'r'

mov AH, 2

int 21h

mov DL, 'l'

mov AH, 2

int 21h

mov AH, 2

mov DL, 'd'

int 21h

mov ah,4ch

int 21h

main endp

end main

You might also like