毕业论文论文范文课程设计实践报告法律论文英语论文教学论文医学论文农学论文艺术论文行政论文管理论文计算机安全
您现在的位置: 毕业论文 >> 课程设计 >> 正文

微机原理课程设计_简易文本编辑器 第2页

更新时间:2007-10-25:  来源:毕业论文

pos_get
mov row,dh
mov line,dl
inc row
cmp row,24
je  returns
mov line,0
call win4
jmp first
returns:
mov row,24
mov line,0
jmp first
j6:   
ret
com     endp
fuc_key proc near                 ;功能键子程序
next:
cmp ah,47h                ;home
jz  home
cmp ah,4fh                ;end
jz  _end
cmp ah,0eh                ;backspace
jz  bak_sp
cmp ah,53h
jz  del
cmp ah,44h                ;F10
jz  help_0
ret
help_0: call help
home:                             ;HOME键的功能
pos_get
mov row,dh
mov line,0
call win4
jmp first  
_end:                             ;END键的功能
pos_get
mov row,dh
mov line,79
call win4
jmp first
bak_sp:                           ;退格键的功能
pos_get
mov row,dh
mov line,dl
cmp line,0
je  stop
dec line
jmp ab
stop:
mov line,0
ab:   
pos_get 0,row,line
mov ah,2
mov dl,00
int 21h
call win4
jmp first
del:                                ;DEL删除
pos_get
mov row,dh
mov line,dl
dec line
pos_get 0,row,line
mov ah,2
mov dl,00
int 21h
inc line
call win4
jmp first
cm:   
cmp line,00
jz  pos_cm
pos_cm:
pos_curse 0,0,0
jmp first
help proc near                       ;显示帮助信息
call savedisplay               ;显示帮助信息每行的位置
pos_get
push dx
win 0,57h,4,5,21,70
pos_curse 0,6,25
string help_mas1
pos_curse 0,8,11
string help_mas2
pos_curse 0,10,11
string help_mas3
pos_curse 0,12,11
string help_mas4
pos_curse 0,14,11
string help_mas5
pos_curse 0,16,11
string help_mas6
pos_curse 0,18,11
string help_mas7
pop dx
pos_curse 0,dh,dl
mov  ah,0
int  16h
cmp  ah,36h                       ;F10 active help
jnz  cls
call help
cls:  
win 0,1eh,9,10,13,70              ;清屏
call backdisplay
help endp
fuc_key endp
menu_show proc near                     ;显示菜单
call savedisplay
push cx
cmp ah,3bh                      ;F1功能
jz  menu_sh
jmp char_get
menu_sh:                                ;定义菜单的背景字体颜色
pos_get
push dx
win 0,06h,2,1,7,11
win 0,65h,1,0,6,10
pos_curse 0,1,0
string manu_1
string manu_2
string manu_3
string manu_4
string manu_5
pop dx
dec dl
pos_curse 0,dh,dl
copmar:  
red_chr
cmp ah,50h               
jz  manu_n
jmp manu_hid
manu_hid:                               ;菜单隐藏
win 0,1eh,1,1,7,11
call backdisplay
jmp char_get
manu_n:     ;开始定义各个菜单项
win 0,65h,5,1,5,8
pos_curse 0,5,0
string manu_5
win 0,15h,1,1,1,8
pos_curse 0,1,0
string manu_1
red_chr
cmp ah,48h
je  manu_n
cmp al,0dh
jz  new_1
cmp ah,50h
je  manu_o
jmp manu_hid
manu_n0:
jmp manu_n
manu_o:
win 0,65h,1,1,1,8
pos_curse 0,1,0
string manu_1
win 0,15h,2,1,2,8
pos_curse 0,2,0
string manu_2
red_chr
cmp ah,48h
je  manu_o
cmp al,0dh
jz open_1
cmp ah,50h
je  manu_s
jmp manu_hid
new_1:  jmp new_2
manu_s:
win 0,65h,2,1,2,8
pos_curse 0,2,0
string manu_2
win 0,15h,3,1,3,8
pos_curse 0,3,0
string manu_3
red_chr
cmp al,0dh
jz  save_1
cmp ah,48h
je  manu_s
cmp ah,50h
je  manu_a
jmp manu_hid
open_1: jmp open_2
manu_n1:
jmp manu_n
manu_a:
win 0,65h,3,1,3,8
pos_curse 0,3,0
string manu_3
win 0,15h,4,1,4,8
pos_curse 0,4,0
string manu_4
red_chr

上一页  [1] [2] [3] [4] 下一页

微机原理课程设计_简易文本编辑器 第2页下载如图片无法显示或论文不完整,请联系qq752018766
设为首页 | 联系站长 | 友情链接 | 网站地图 |

copyright©751com.cn 辣文论文网 严禁转载
如果本毕业论文网损害了您的利益或者侵犯了您的权利,请及时联系,我们一定会及时改正。