1
fasmを使用してアセンブリで三角形を描画しようとしていますが、できません。 私は四角形を描画する次のコードを持っていますが、サイクル "ciclopinta"内の[comp]値を減らすだけでよいと思っていますが、それはうまくいきません(あるいは間違っています)。fasmを使用してアセンブリで三角形を描く
org 100h
mov ah,4fh
mov al,02h
mov bx,13h
int 10h
mov [alt],50
mov [comp], 100
mov dx, 100
mov cx,100
ciclopinta:
ciclo1:
mov ah,0ch
mov al,23h
mov bh, 0
int 10h
dec cx
dec byte[comp]
jnz ciclo1
mov cx, 100
mov [comp],100
dec dx
dec byte [alt]
jnz ciclopinta
mov ah, 07h
int 21h
mov ah,4ch
int 21h
comp rb 1
alt rb 1