1.The given program generates a 10*10 sodil box of

1.The given program generates a 10*10 sodil box of astericks.

.MODEL SMALL
.STACK 100H
.DATA
SQUARE  DB  ‘**********’,0DH,0AH,’$’
.CODE
MAIN PROC
MOV AX, @DATA                ; initialize DS
MOV DS, AX

LEA DX, SQUARE               ; load the string
MOV AH, 9                                          

INT 21H
INT 21H                      ; display the string 10 times
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H
INT 21H

MOV AH, 4CH                  ; return control to DOS
INT 21H
MAIN ENDP
END MAIN
Now you have to change the code and generate a diamond with 10 rows.

2.Create a calculator which could do the following operations. Such as
i) Addition and subtruction of two single digits
ii)Other than this it could say whether the single digit is Odd or Even.
Put 2 single digits and say whether 1st number is greater than 2nd numbe, less than 2nd number or equal.

 

Leave a Comment

Your email address will not be published. Required fields are marked *

GradeEssays.com
We are GradeEssays.com, the best college essay writing service. We offer educational and research assistance to assist our customers in managing their academic work. At GradeEssays.com, we promise quality and 100% original essays written from scratch.
Contact Us

Enjoy 24/7 customer support for any queries or concerns you have.

Phone: +1 213 3772458

Email: support@gradeessays.com

© 2024 - GradeEssays.com. All rights reserved.

WE HAVE A GIFT FOR YOU!

15% OFF 🎁

Get 15% OFF on your order with us

Scroll to Top