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

Lab 10

Uploaded by

23162034
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)
17 views3 pages

Lab 10

Uploaded by

23162034
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

Lab10

Full in name: Group:


Student ID:
Please explain how they work by commenting line by line

---10.1---
.model small
.stack 100h
.data
.code
MAIN PROC

MOV bl, 3 ;Assign 3 to bl register


MOV cl, 1 ;Assign 1 to cl register

ADD bl, cl ;Adding the value of bl and cl then assign to bl


ADD bl, 48 ;Adding 48 into the addition result For ASCII Management

MOV dl, bl ;Moving the value of bl into dl for performing output


MOV ah, 2 ;Calling print Function for print value in dl register
INT 21H ;Calling text Interupt

MOV ah, 4CH ;Calling Exit Function


INT 21H ;Calling text Interupt

MAIN ENDP
END MAIN
---10.2---
.model small
.data
.code
MAIN PROC
MOV al, 5
MOV bl, 2
ADD ah, 48
MOV bh, ah

ADD al, 48
MOV bl, al

MOV dl, bh
MOV ah, 2
INT 21H

MOV dl, bl
MOV ah, 2
INT 21H

MOV ah, 4CH


INT 21H

MAIN ENDP
END MAIN
---10.3---
;Program to convert UPPER into LOWER letter

.model small
.stack 100h
.data
.code
MAIN PROC

;Input Character

MOV ah, 1 ;
INT 21H ;
MOV bl, al ;
;Printing next line

MOV dl, 0DH ;


MOV ah, 2 ;
INT 21H ;

MOV dl, 0AH ;


MOV ah, 2 ;
INT 21H ;

;Printing Character

MOV dl, bl ;
ADD dl, 32 ;
MOV ah, 2 ;
INT 21H ;

;Calling Exit FunctioN

MOV ah, 4CH ;


INT 21H ;

MAIN ENDP
END MAIN

You might also like