Question
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 ;
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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Assembly code to print diamond shape in 10 rows org 100h data n ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Document Format ( 2 attachments)
63644afb3b442_238987.pdf
180 KBs PDF File
63644afb3b442_238987.docx
120 KBs Word File
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started