您好,欢迎光临本网站![请登录][注册会员]  
文件名称: 字符图形程序中国北京
  所属分类: 硬件开发
  开发工具:
  文件大小: 5kb
  下载次数: 0
  上传时间: 2008-06-27
  提 供 者: zengq******
 详细说明: data segment
car db 133 ;定义字符图形表
db 05h,122,0,0
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,0,3
db 05h,122,1,0
db 05h,122,2,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,-8,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,0,7
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,2,2
db 05h,122,0,1
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,0,-1
db 05h,122,-2,0
db 05h,122,2,2
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-2,0
db 05h,122,0,6
db 05h,122,3,0
db 05h,122,0,1
db 05h,122,-3,0
db 05h,122,-3,1
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,0,2
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,-1,-2
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,-1,-2
db 05h,122,-1,0
db 05h,122,-1,0
db 05h,122,0,9
db 05h,122,1,-3
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,0,1
db 05h,122,2,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,1,0
db 05h,122,0,4
db 05h,122,1,0
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,0,-1
db 05h,122,1,2
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,1,0
db 05h,122,-3,-1
db 05h,122,0,2
db 05h,122,1,1
db 05h,122,0,-4
db 05h,122,1,-1
db 05h,122,0,6
char_cnt dw ?
pointer dw ?
line_on db ?
col_on db ?
data ends
stack segment
db 2000 dup (0)
stack ends
code segment
assume cs:code,ds:data,ss:stack
main proc far
push ds
sub ax,ax
push ax
mov ax,data
mov ds,ax

   mov ah,0
mov al,4
int 10h

mov ah,0bh
mov bh,0
mov bl,2
int 10h

mov ah,0bh
mov bh,01
mov bl,00
int 10h

call clear_screen ;调用清屏子程序
lea di,car
mov dh,10
mov dl,2
call move_shape
mov ah,8
int 21h
cmp al,'q'
jz exit
main endp

clear_screen proc near
push ax
push bx
push cx
push dx
mov ah,6
mov al,0
mov ch,0
mov cl,0
mov dh,120
mov dl,200
mov bh,7
int 10h
pop dx
pop cx
pop bx
pop ax
ret
clear_screen endp

move_shape proc near
push ax
push bx
push cx
push dx
push di
mov ah,0fh
int 10h
sub ch,ch
mov cl,[di]
inc di
mov char_cnt,cx
mov pointer,di
mov line_on,dh
mov col_on,dl
mov_crsr:
add dh,[di+2]
add dl,[di+3]
mov ah ,2
int 10h
mov al,[di]
mov bl,[di+1]
push cx
mov cx,1
mov ah,09
int 10h
pop cx
add di,4
loop mov_crsr
call dly_qrtr     ;调用延时子程序
pop di
pop dx
pop cx
pop bx
pop ax
ret
move_shape endp

dly_qrtr proc near
push cx
push dx
mov dx,5000
d11:mov cx,25000
d12:loop d12
dec dx
jnz d11
pop dx
pop cx
ret
dly_qrtr endp
exit:mov ah,4ch
int 21h
code ends
end main



...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: 中国北京 汇编 源程序
 输入关键字,在本站1000多万海量源码库中尽情搜索: