You are on page 1of 17

1.

Display the output Ab Cd Ef Gh Ij Kl Mn Op Qr St Uv Wx Yz

jne 0104 int 20

Program:

mov ah,02 mov dl,41 int 21 push dx add dl,21 int 21 mov dl,0a int 21 pop dx add dl,02 cmp dl,5b

sub dl,20 int 21 pop dx inc dl cmp dl,6f 2. Display the following output: aAbBcCdDeEfFgGhHiIjJkKlLmMnN Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz jne 0104 mov dl,0a int 21 mov dl,0d int 21 mov dl,4f int 21 push dx add dl,20 int 21 mov dl,0a int 21 mov dl,0d int 21 pop dx Program:

mov ah,02 mov dl,61 int 21 push dx

3.. Display the Output: inc dl cmp dl,5b jne 011e int 20 CcDdEeFfGg lL kK jJ iI hH

Program:

mov ah,02 mov dl,43 int 21 push dx add dl,20

int 21 pop dx inc dl cmp dl,48 jne 0104 mov dl,0a int 21 mov dl, 6c int 21 push dx sub dl, 20 int 21 mov dl, 0a int 21 pop dx dec dl cmp dl, 67 jne 011a int 20

O P Q

Program:

mov ah,02 mov dl,41 int 21 push dx add dl,21 int 21 pop dx add dl,02 cmp dl,47 jne 0104 mov dl, 0a int 21 mov dl, 0d int 21 mov dl, 47 int 21 4. Display the output: push dx inc dl AbCdEf G H IjKlmN mov dl, 0a int 21 mov dl, 0d int 21

pop dx inc dl cmp dl,49 jne 011f mov dl, 49 int 21 push dx add dl, 21 int 21 pop dx add dl, 02 cmp dl, 4f jne 0136 mov dl, 0a

int 21 mov dl, 4f int 21 push dx inc dl mov dl, 0a int 21 mov dl, 0d int 21 pop dx inc dl cmp dl, 52

int 21 mov dl, 0d

jne 0104 mov dl, 0a int 21 mov dl, 0d int 21 mov dl, 51 5. Display the output: int 21 push dx iIjJkKlLmMnNoOpP Qq Rr Ss Tt Uu Vv hHgGfFeEdDcCbBaA add dx, 20 int 21 mov dx, 0a int 21 mov dx, 0d int 21 pop dx inc dx cmp dl, 57 Program: jne 011e mov dx, 68 movah, 02 mov dl, 69 int 21 push dx sub dl, 20 int 21 pop dx inc dl cmp dl, 71 int 21 push dx sub dx, 20 int 21 pop dx dec dl cmp dl, 60

jne 013a int 20

6. Display the output

aA bB cC dD eE fF gG hH

iI jJ kK LlMmNnOoPpQqRrSs

cmp dl, 54 jne 0120 int 20

Program:

mov ah, 02 mov dl, 61 int 21 push dx sub dl, 20 int 21 mov dx, 0a int 21 mov dx, 0d int 21 pop dx inc dl cmp dl, 6c jne 0104 mov dl, 4c int 21 push dx add dl, 20 int 21 pop dx inc dl

7. Display the output

Zz Yy Xx Ww ABcCDeEFgGHi Ss Tt Uu Vv jkLlmNnoPpqR

Program:

mov ah, 02 mov dl, 5a int 21 push dx add dl, 20 int 21 mov dl, 0a int 21 mov dl, 0d int 21 pop dx

dec dl cmp dl, 56 jne 0104 mov dl, 41 int 21 push dx inc dl int 21 add dl, 21 int 21 pop dx add dl, 02 cmp dl, 49 jne 011e mov dl, 0a int 21 mov dl, 0d int 21 mov dl, 53 int 21 push dx add dl, 20 int 21 mov dl, 0a int 21 mov dl, 0d int 21 pop dx inc dl cmp dl, 57 jne 013d mov dl, 6a int 21 push dx inc dl int 21 sub dl, 1f int 21 pop dx add dl, 02 cmp dl, 72

jne 0157 int 20

int 21 inc dl int 21 push dx sub dl, 1f int 21 pop dx add dl, 02 cmp dl, 6d jne 0104 mov dl, 0a int 21 mov dl, 30 int 21

8. Display the output

push dx inc dl

abCdeFghIjkL 01 23 45 67 89 OPqRSt UVwXYz

int 21 mov dl, 0a int 21 pop dx add dl, 02 cmp dl, 3a jne 011f mov dl, 4f int 21

Program:

inc dl int 21

mov ah, 02 mov dl, 61

push dx

add dl, 21 int 21 pop dx add dl, 02 cmp dl, 5b jne 0135

int 20

9. Display the output

AB CD EF Ghijkl Mn Op Qr

pop dx inc dl cmp dl, 6d jne 011e mov dl, 0a int 21 mov dl, 4d int 21

Program:

push dx add dl, 21

mov ah, 02 mov dl, 41 int 21 push dx inc dl int 21 mov dl, 0a int 21 mov dl, 0d int 21 pop dx add dl, 02 cmp dl, 47 jne 0104 mov dl, 67 int 21 push dx inc dl

int 21

mov dl, 0a int 21 pop dx add dl, 02 cmp dl, 53 jne 0131 int 20

10. Display The output

123456789 AB CD EF gGhHiIjJkk Lm Mn No Op QrStUvWxYz

Program:

mov ah, 02 mov dl, 31 int 21

push dx inc dl int 21 pop dx add dl, 02 cmp dl, 39 jne 0104 int 21 mov dl, 0a int 21 mov dl, 0d int 21 mov dl, 41 int 21 push dx inc dl int 21 mov dl, 0a int 21 mov dl, 0d int 21 pop dx add dl, 02 cmp dl, 47 jne 0120 mov dl,67 int 21 push dx

sub dl,20 int 21

pop dx inc dl cmp dl,6c jne 013a mov dl, 0a int 21 mov dl, 0d int 21 mov dl, 4c int 21 push dx

add dl, 21 int 21 mov dl, 0a int 21 mov dl, 0d int 21 pop dx inc dl cmp dl, 51 jne 0154 mov dl, 51 int 21 push dx add dl, 21 int 21 pop dx add dl, 02 cmp dl, 5b jne 016e int 20

You might also like