刚编了一个显示平行四边形的程序,能运行但结果不对请大侠看看
data segment
x db 0
data ends
code segment
assume cs:code,ds:data
start:mov ax,data
mov ds,ax
mov cx,15
mov dl,38h
next_line:push cx
mov cx,15
next_char:mov ah,2
int 21h
push dx
mov dl,20h
mov ah,2
int 21h
pop dx
loop next_char
push dx
mov ah,2
mov dl,0dh
int 21h
mov dl,0ah
int 21h
inc x
kg: mov cx,x
mov dl,20h
mov ah,2
int 21h
loop kg
pop cx
loop next_line
mov ah,4ch
int 21h
code ends
end start
[解决办法]
你的x 是字符 mov cx,x能通过吗?