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. Time left 1:14:12 While creating output, design your code in such a way that, LOOP Instruction must be used at least once. if required, ASCII table can be found in e-learning page of course at the bottom of page). Without exiting from exam you can open a new page to see the table. Hint At most 20 lines of code must be enough to solve the problem. OUTPUT (if input is 4) D DC DC DCBA CODE DATS SEGMENT NL DE OAH, ODH, 'S' DATS ENDS CODS SEGMENT PROG PROC ASSUME DS:DATS, CS:CODS MOV AX, DATS MOV DS, AX CALL CLRG CALL OTKY . : CALL GTKY CALL EXIT DROG ENDP NEWL PROC MOV AH,09 LEA DX, NL INT 21H BET NEW ENDE NEWL PROC MOV AH,09 LEA DX, NL INT 21H RET NEWL ENDP CLRG PROC MOV AX, MOV BX,0 MOV Cx, 0 MOV DX, RET CLRG ENDP GTKY PROC MOV AH,08 INT 21H RET GTKY ENDP EXIT PROC MOV AL, MOV AH, 4CH INT 21H EXIT ENDE CODS ENDS END PROG
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
