回 帖 发 新 帖 刷新版面

主题:汇编中如何清屏??

如题,谢谢。

回复列表 (共8个回复)

沙发

mov ax,0600h   
     mov bx,0754h
     mov cx,0000h
     mov dx,194fh
     int 10h

板凳

To: 楼上的兄弟,XP禁止了上面的指令哦,上面那个方法不能运行哦,还有其它的方法吗???有TC里clrscr()的源代码就好。

3 楼

mov ah,6
mov al,0
int 10

4 楼

To: 楼上,在XP下也不行啊...

5 楼

这是320*200里的清屏,有点繁哦,因为刚好是我的程序需要的,自己改下吧
vline proc near uses ax bx dx
      mov dx,0
      mov bh,0
      mov ah,0ch
draw7:int 10h
      inc dx
      cmp dx,210
      jl draw7
      ret
vline endp
clear proc near uses ax bx cx dx
      xor cx,cx
      mov al,37h
draw3:
      call  vline
      inc cx
      cmp cx,320
      jl draw3
      ret

clear endp
这是80*25里的清屏
clear  proc near uses ax bx cx dx
       mov cl,0
       mov ch,0
       mov dl,79
       mov dh,24
       mov bh,7
       mov al,0
       mov ah,6
       int 10h
       ret
clear endp

6 楼

up

7 楼

mov ax,0600h
mov bh,00
mov cx,0000h
mov dx,184fh
int 10h

8 楼

mov ax,0600h
mov bh,3ah
mov cx,0000h
mov dx,184fh
int 10h

我来回复

您尚未登录,请登录后再回复。点此登录或注册