Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Fill up the reserved place (shown with dots) with assembly code. With respect to single digit which is taken from keyboard between 1 and 9

Fill up the reserved place (shown with dots) with assembly code. With respect to single digit which is taken from keyboard between 1 and 9 (both are included, assume that user will not enter anything other than determined so there is no need to check if entry is correct) your code will give an output forming a triangle shape with capital letters. For example, if entry is 4, output will be as shown below.

While creating output, design your code in such a way that, LOOP instruction must be used at least once.

If required, ASCII table .

Hint: At most 20 lines of code must be enough to solve the problem.

OUTPUT (if input is 4)

AAAA BBB CC D

CODE

image text in transcribed

CODE DATS SEGMENT NL DB DAH, ODH, 'S' DATS ENDS CODS SEGMENT PROG PROC ASSUME DS:DATS, CS:CODS MOV AX, DATS MOV DS, AX CALL CLRG CALL GTKY : CALL GTKY CALL EXIT PROG ENDP NEWL PROC MOV AH,09 LEA DX, NL INT 21H RET NENL ENDP CLRG PROC MOV AX, MOV BX, 0 MOV cx, 0 MOV DX, RET CLRG ENDP GTKY PROC MOV AH,0B INT 21H RET GTKY ENDP EXIT PROC MOV AL, MOV AH, 4CH INT 21H EXIT ENDP

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions