TITLE MASM Template(main.asm)
INCLUDE Irvine32.inc
.data
.code
main PROC
call Clrscr
mov ax, 0
mov cx, 0
Cyklus: mov ax, cx
add ax, 1
imul ax, cx
movsx eax, ax
call WriteInt
mov ax, 0Dh
call WriteChar
mov ax, 0Ah
call WriteChar
inc cx
cmp cx, 10
je Koniec
jmp Cyklus
Koniec : call ReadChar
exit
main ENDP
END main