谁能帮我解决下这段程序,是个锯齿波输出程序:
锯齿波发生程序
juchibo : proc near
          push ax
          push bx
          push cx
          push dx
          mov dx,228h
      mov al,cunchu
          out dx,al
          mov cx,jishu          
          cmp cx,0ffh
          jg ad
dec:      dec  
          add cx,01h
          cmp cx,1feh
          mov cx,0h
          jmp cun
          
ad:       inc 
cun :     mov cun,al
          mov jishu,cx
intreturn:pop dx
          pop cx
          pop bx
          pop ax  
          eoi
          iret
juchibo endp  
里面有几条指令不怎么清楚,谢谢各位大虾指导下:
          cmp cx,0ffh
          jg ad
dec:      dec  
          add cx,01h
          cmp cx,1feh
          mov cx,0h
          jmp cun
          
ad:       inc 
cun :     mov cun,al
          mov jishu,cx
小弟我急用