.MODEL SMALL .STACK 100H .DATA newline DB 0DH, 0AH, '$' star DB '*' line DB ? .CODE MAIN PROC MOV AX, @DATA mov DS, AX MOV AH, 1 INT 21H SUB AL, '0' MOV line, AL LEA DX, newline MOV AH, 9 INT 21H MOV BX, 1 row_loop: MOV CL, line CMP CL, 0 JE exit_loop PUSH CX MOV CX,BX print_stars: MOV AH, 2 MOV DL, star INT 21H LOOP print_stars LEA DX, newline MOV AH, 9 INT 21H POP CX ADD BX,2 DEC line JMP row_loop exit_loop: MOV AH, 4CH INT 21H MAIN ENDP END MAIN