.model small.stack 100h.datax1 dw 50y1 dw 50x2 dw 100y2 dw 100x3 dw 150y3 dw 50color dw 0ch.codemain procmov ax, @datamov ds, ax; 绘制第一个点mov ah, 0chmov al, [color]mov bh, 0mov cx, [x1]mov dx, [y1]int 10h; 绘制第二个点mov ah, 0chmov al, [color]mov bh, 0mov cx, [x2]mov dx, [y2]int 10h; 绘制第三个点mov ah, 0chmov al, [color]mov bh, 0mov cx, [x3]mov dx, [y3]int 10h; 连接三个点,绘制三角形mov ah, 0bhmov bh, 0mov al, [color]mov cx, [x1]mov dx, [y1]int 10hmov cx, [x2]mov dx, [y2]int 10hmov cx, [x3]mov dx, [y3]int 10hmov ah, 4ch ; 退出程序int 21hmain endpend main