Question: 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

Fill up the reserved place (shown with dots) with assembly code. With

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!