当前位置: 代码迷 >> 汇编语言 >> 刚刚编了一个显示平行四边形的程序,能运行但结果不对请大侠看看
  详细解决方案

刚刚编了一个显示平行四边形的程序,能运行但结果不对请大侠看看

热度:7976   发布时间:2013-02-26 00:00:00.0
刚编了一个显示平行四边形的程序,能运行但结果不对请大侠看看
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能通过吗? 
  相关解决方案